gpio: rcar: Implement .get_direction() callback
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 12 Jul 2018 09:15:01 +0000 (11:15 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Jul 2018 08:55:26 +0000 (10:55 +0200)
commitad817297418539b8895bbbf1d05ee3e5a211a117
treef7567bc6e5c2cc47415c34bfbad62e5601e8dee6
parent1c22a252b3ded10d06acecdf8fb71f9dd8005c4f
gpio: rcar: Implement .get_direction() callback

Allow gpiolib to read back the current I/O direction configuration by
implementing the .get_direction() callback.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-rcar.c