gpio: set up initial state from .get_direction()
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 28 Apr 2016 11:33:59 +0000 (13:33 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 30 Apr 2016 11:01:51 +0000 (13:01 +0200)
commit72d3200061776264941be1b5a9bb8e926b3b30a5
tree8917ef9b55e0cb00648003a1233c4c4905427d37
parente9f4d569fb897e77200cd431f3aab138c3c733e6
gpio: set up initial state from .get_direction()

If the gpiochip supports the .get_direction() callback, then
the initial state of the descriptor flags should be set up
as output accordingly. Also put in comments explaining what is
going on.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c