]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Input: improve usage of gpiod API
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 17 Jun 2015 00:02:13 +0000 (17:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 17 Jun 2015 00:09:14 +0000 (17:09 -0700)
commitea0afac450d2a3aaeb4c51ddf1631e677afe3193
tree5b769eba94df0a9775c542bcb633ca221633aa0d
parenteeb64c14275e52740d6410632e62e0ad9b88ca70
Input: improve usage of gpiod API

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 <u.kleine-koenig@pengutronix.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/clps711x-keypad.c
drivers/input/misc/drv260x.c
drivers/input/misc/gpio-beeper.c