Skip to content

Commit 30d451e

Browse files
committed
Merge tag 'gpio-fixes-for-v6.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull gpio fix from Bartosz Golaszewski: - check for both the new AND old (deprecated) setter callback when changing GPIO direction to output * tag 'gpio-fixes-for-v6.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: gpiolib: Allow to use setters with return value for output-only gpios
2 parents fe65616 + b424bb8 commit 30d451e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpiolib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2879,7 +2879,7 @@ static int gpiod_direction_output_raw_commit(struct gpio_desc *desc, int value)
28792879
* output-only, but if there is then not even a .set() operation it
28802880
* is pretty tricky to drive the output line.
28812881
*/
2882-
if (!guard.gc->set && !guard.gc->direction_output) {
2882+
if (!guard.gc->set && !guard.gc->set_rv && !guard.gc->direction_output) {
28832883
gpiod_warn(desc,
28842884
"%s: missing set() and direction_output() operations\n",
28852885
__func__);

0 commit comments

Comments
 (0)