gpio: mockup: don't access internal GPIOLIB structures
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 7 Sep 2023 14:52:30 +0000 (16:52 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 11 Sep 2023 09:17:02 +0000 (11:17 +0200)
commited9e8d136f6d3d3265ee91bebf6fc934d5ba5a96
treedcbd001e8dc9b6b8ffa54b0674eb0e38a2837d8a
parent33f909fdd151affe93941d4433b9ca62c3a1a8c5
gpio: mockup: don't access internal GPIOLIB structures

Don't include gpiolib.h. Track the request status of lines locally
instead. In order to retrieve the device name use the fact that
gpio-mockup supports only a single GPIO device per platform device and
call device_find_any_child().

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c