gpio: max77620: get gpio value based on direction
authorVenkat Reddy Talla <vreddytalla@nvidia.com>
Mon, 27 Jun 2016 10:56:24 +0000 (16:26 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 4 Jul 2016 09:39:38 +0000 (11:39 +0200)
commit1941b4419a24e026ce8354a2fd40c9387577697e
treeb7d12a264b45529a1530decd57a9b19734c27d41
parent7eebe96f22e7968656a64458620f5cdabee8903c
gpio: max77620: get gpio value based on direction

Gpio direction is determined by DIRx bit of GPIO
configuration register, return max77620 gpio value
based on direction in or out.

Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-max77620.c