gpiosim: use wrappers around container_of()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 5 Dec 2022 10:12:13 +0000 (11:12 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 7 Dec 2022 09:14:48 +0000 (10:14 +0100)
commit2064a05984f6585674f7a380ce5bf6c60eed992b
tree84b2d1173ea0ccaf88d0bbc9b48b18cb5e274c2f
parent324d3c0741961317bf8b07674e25827eaccccff5
gpiosim: use wrappers around container_of()

Simplify the code a bit by providing helpers that extract the underlying
structure from struct refcount using container_of().

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tests/gpiosim/gpiosim.c