gpio: tegra: read output value when gpio is set in direction_out
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 9 Nov 2012 06:04:20 +0000 (11:34 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 17 Nov 2012 20:14:04 +0000 (21:14 +0100)
commit195812e4b6a631e8eaad4046bf6890db4328ea1f
tree1dd479a38f8a5fc49c25d9499a61017fc41cdc63
parented32620ea72889c8a9dda278a960bce01136d9a4
gpio: tegra: read output value when gpio is set in direction_out

Read the output value when gpio is set for the output mode for
gpio_get_value(). Reading input value in direction out does not
give correct value.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c