gpiolib: Extract gpio_chip_get_value() wrapper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 8 Apr 2022 18:18:53 +0000 (21:18 +0300)
committerBartosz Golaszewski <brgl@bgdev.pl>
Sat, 9 Apr 2022 20:39:03 +0000 (22:39 +0200)
commit234c52097ce416028854d2167afb38b7718b9a94
treeaa231fb85b8e6060757f44c530956f4f536b9773
parent3de69ae1c407da6cbeca75fd3ee6a40237d899dd
gpiolib: Extract gpio_chip_get_value() wrapper

In couple of cases we are using the same code to wrap ->get() callback.
Extract that code into a helper for the sake of better maintenance.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpiolib.c