gpio: generic: add get_direction support
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 12 Jun 2015 16:20:35 +0000 (18:20 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 15 Jul 2015 22:11:02 +0000 (00:11 +0200)
commitdb3b0fcc5adbda0c7060c9298c2514778547fee2
tree39e1ee04c0979833fc2cc09156857cfba9fd8c44
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
gpio: generic: add get_direction support

Allow to determine the current direction configuration by
reading back from the direction register.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-generic.c