Skip to content
Commit b424bb88 authored by Mathieu Dubois-Briand's avatar Mathieu Dubois-Briand Committed by Bartosz Golaszewski
Browse files

gpiolib: Allow to use setters with return value for output-only gpios



The gpiod_direction_output_raw_commit() function checks if any setter
callback is present before doing anything. As the new GPIO setters with
return values were introduced, make this check also succeed if one is
present.

Fixes: 98ce1eb1 ("gpiolib: introduce gpio_chip setters that return values")
Signed-off-by: default avatarMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Link: https://lore.kernel.org/r/20250411-mdb-gpiolib-setters-fix-v2-1-9611280d8822@bootlin.com


Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent 8ffd015d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment