diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-08-21 17:18:27 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-08-22 10:37:46 +0300 |
commit | 9ce4ed5b4db13633f9934a4eac02c4cde04d5c63 (patch) | |
tree | cc1a729486d8ee9717cab5d01a35bd058c47ee57 /drivers/gpio/gpiolib.h | |
parent | 91043f559313fb04ac18253fcf18561a40c1b045 (diff) | |
download | linux-9ce4ed5b4db13633f9934a4eac02c4cde04d5c63.tar.xz |
gpiolib: provide and use gpiod_line_state_notify()
Wrap the calls to blocking_notifier_call_chain() for the line state
notifier with a helper that allows us to use fewer lines of code and
simpler syntax.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpiolib.h')
-rw-r--r-- | drivers/gpio/gpiolib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index e860ed434bc2..a0a67569300b 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -147,6 +147,7 @@ int gpiod_set_array_value_complex(bool raw, bool can_sleep, extern spinlock_t gpio_lock; extern struct list_head gpio_devices; +void gpiod_line_state_notify(struct gpio_desc *desc, unsigned long action); /** * struct gpio_desc - Opaque descriptor for a GPIO |