]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f8f08138c6b7f4444589ac34189b84ec4c646cd
tree8917ef9b55e0cb00648003a1233c4c4905427d37
parent5a24b60702c300701df8b6baef8ad1994f0cd067
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