]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: mxs: implement get_direction callback
authorJanusz Uzycki <j.uzycki@elproma.com.pl>
Wed, 19 Nov 2014 08:55:22 +0000 (09:55 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 28 Nov 2014 10:28:22 +0000 (11:28 +0100)
commitc8aaa1bf068f76c84111671a7c13ad7b06b21997
treeee05bf63d009085b8752a8c5ce350300e190219f
parentfcb8bd47027a2a8dbf6a0212ae09fc86fbe71627
gpio: mxs: implement get_direction callback

gpiolib's gpiod_get_direction() function returns the EINVAL error
if .get_direction callback is not defined.
The patch implements the callback for mxs chip which is useful
for debugging.

Inspired by arch/arm/mach-at91/gpio.c

On the moment the patch is required to get the patch
"serial: mxs-auart: enable PPS support" working.
It is planned to introduce new mctrl_gpio helpers to avoid
gpiod_get_direction() function.

Signed-off-by: Janusz Uzycki <j.uzycki@elproma.com.pl>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxs.c