]> 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)
commit32a34f9660bf09b03dd24019658fe1f0c668d03a
tree8917ef9b55e0cb00648003a1233c4c4905427d37
parent066ed35d5fc9e1128f79b9de58d0ae577743ac44
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