]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: sysfs: emit chardev line-state events on active-low changes
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 31 Oct 2024 20:01:54 +0000 (21:01 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 4 Nov 2024 07:56:19 +0000 (08:56 +0100)
commit5a7119e0d951fdf7ebcc25a77565ac184798639a
tree4afa9cd4b60007d86f191b92d9db680aa3904a5b
parent285678c947197b0a071328f9344b0312e5545e92
gpio: sysfs: emit chardev line-state events on active-low changes

The sysfs active_low attribute doesn't go through the usual paths so it
doesn't emit the line-state event. Add the missing call to
gpiod_line_state_notify() to gpio_sysfs_set_active_low().

Reviewed-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20241031-gpio-notify-sysfs-v4-4-142021c2195c@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-sysfs.c