]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: sa1100: implement get_direction method
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 31 Aug 2016 07:49:44 +0000 (08:49 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 24 Mar 2017 13:04:37 +0000 (14:04 +0100)
commit98a6a102494bd78bc4681d2406947babae50a9db
treea9af6c70bb9fb1f784bb73e2912836c4237e6807
parent631d3f3de4a49e93f3ee59da274afd232281b5d3
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