summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mb86s7x.c
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2018-09-21 12:36:03 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-09-25 09:34:48 +0200
commitae9847f48a4b4bff0335da20be63ac84d94eb54c (patch)
treead76987a49c41717745779be2be1b3eb9ae34870 /drivers/gpio/gpio-mb86s7x.c
parentgpio: Rename devres implementation file (diff)
downloadlinux-ae9847f48a4b4bff0335da20be63ac84d94eb54c.tar.xz
linux-ae9847f48a4b4bff0335da20be63ac84d94eb54c.zip
gpiolib: Fix gpio_direction_* for single direction GPIOs
GPIOs with no programmable direction are not required to implement direction_output nor direction_input. If we try to set an output direction on an output-only GPIO or input direction on an input-only GPIO simply return 0. This allows this single direction GPIO to be used by libgpiod. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mb86s7x.c')
0 files changed, 0 insertions, 0 deletions