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

We already emit a CONFIG_RELEASED event when a line is unexported over
sysfs (this is handled by gpiod_free()) but we don't do the opposite
when it's exported. This adds the missing call to
gpiod_line_state_notify().

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