summaryrefslogtreecommitdiff
path: root/lib/halfmd4.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-06-17 00:02:13 (GMT)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-06-17 00:09:14 (GMT)
commitea0afac450d2a3aaeb4c51ddf1631e677afe3193 (patch)
tree5b769eba94df0a9775c542bcb633ca221633aa0d /lib/halfmd4.c
parenteeb64c14275e52740d6410632e62e0ad9b88ca70 (diff)
downloadlinux-ea0afac450d2a3aaeb4c51ddf1631e677afe3193.tar.xz
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>
Diffstat (limited to 'lib/halfmd4.c')
0 files changed, 0 insertions, 0 deletions