]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: axp209: Implement get_direction
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 21 Sep 2016 20:51:22 +0000 (23:51 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Sep 2016 13:13:04 +0000 (15:13 +0200)
commit46b3c86d8ce4ddbfe11e618050ece134afe6bded
tree06e58a6236f9a7d62ed317a2aa72e7995e3116d2
parent03c4bd5d993f3ed7d65c39f4a5018beab085e609
gpio: axp209: Implement get_direction

Implement the get_direction callback for the GPIOs found in the AXP209
PMIC.

Due to the way they are implemented, in the same register you have the
muxing options, GPIO directions and GPIO values. Since you have no control
over what value is there at reset, simply use output as the default.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-axp209.c