]> git.baikalelectronics.ru Git - kernel.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)
commit812b6ac0e129cc1279503297a6bfab832782e3b7
tree5b769eba94df0a9775c542bcb633ca221633aa0d
parent0b553e79636f79f14d643b597f3acd9165469f95
Input: improve usage of gpiod API

Since f9251f4c2347 (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