diff options
| author | 2023-08-17 14:42:24 +0200 | |
|---|---|---|
| committer | 2023-08-21 15:57:05 +0200 | |
| commit | d2e2586a3292e05d4872e9111e8b005bc4ff4d09 (patch) | |
| tree | 2a7adc4a981f08c98ef7ac28e17b578114139a3f /include/linux/amba/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com | |
| parent | gpiolib: add a second blocking notifier to struct gpio_device (diff) | |
gpio: cdev: wake up chardev poll() on device unbind
Add a notifier block to the gpio_chardev_data structure and register it
with the gpio_device's device notifier. Upon reception of an event, wake
up the wait queue so that the user-space be forced out of poll() and need
to go into a new system call which will then fail due to the chip being
gone.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Kent Gibson <warthog618@gmail.com>
Diffstat (limited to 'include/linux/amba/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
