Re: [PATCH] gpiolib: Fix gpio_direction_* for single direction GPIOs

2018-09-25 Thread Linus Walleij
Hi Ricardo, thanks for the patch and sorry for taking time before responding. On Fri, Sep 21, 2018 at 12:36 PM Ricardo Ribalda Delgado wrote: > GPIOs with no programmable direction are not required to implement > direction_output nor direction_input. > > If we try to set an output direction on a

[PATCH] gpiolib: Fix gpio_direction_* for single direction GPIOs

2018-09-21 Thread Ricardo Ribalda Delgado
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