gpio: sa1100: implement get_direction method
commitc65d1fd350fa28de79e86e18ef73b902a67c791a
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 31 Aug 2016 07:49:44 +0000 (31 08:49 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 24 Mar 2017 13:04:37 +0000 (24 14:04 +0100)
treea9af6c70bb9fb1f784bb73e2912836c4237e6807
parent07242b248119a9388a67975aa7fae7c23afc7a07
gpio: sa1100: implement get_direction method

Allow gpiolib to read back the current IO direction configuration by
implementing the .get_direction callback.  This, in part, allows
debugfs to report the complete true hardware state rather than the
software state.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-sa1100.c