]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: virtuser: check the return value of gpiod_set_value()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 22 Sep 2025 09:58:41 +0000 (11:58 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 13 Oct 2025 07:56:16 +0000 (09:56 +0200)
commit383760e3faa4d3df6e399d207e2930a785380c4e
treeaee0af6da26b89a9e454cabcd6222524008231f6
parent1540b799d271b545bf04726906184bdf29ab272b
gpio: virtuser: check the return value of gpiod_set_value()

We converted gpiod_set_value() and its variants to return an integer to
indicate failures. Check the return value where it's ignored currently
so that user-space agents controlling the virtual user module can get
notified about errors.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-virtuser.c