# Re: \[PATCH\] input: improve usage of gpiod API

- From: Linus Walleij \<hidden\>
- Date: 2015-03-06 10:54:57 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2015/03/8925647
- Thread: https://ratatoskr.run/linux-input/2015/02/8925572/t.md

```text
On Wed, Feb 18, 2015 at 11:47 AM, Uwe Kleine-König
[ref] wrote:

> Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions)
> which appeared in v3.17-rc1, the gpiod_get* functions take an additional
> parameter that allows to specify direction and initial value for
> output. Simplify drivers accordingly.
>
> Note that in the case of the drv260x driver error checking is more
> strict now because -ENOSYS is reported to the caller now. But this
> should only be returned if GPIOLIB is disabled which shouldn't happen as
> the driver depends on GPIOLIB.
>
> Signed-off-by: Uwe Kleine-König <redacted>

Reviewed-by: Linus Walleij <redacted>

Thanks a lot for your hard work on this.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
