gpio: zevio: Get correct gpio output value
authorAxel Lin <axel.lin@ingics.com>
Mon, 7 Apr 2014 23:59:39 +0000 (07:59 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Apr 2014 19:35:09 +0000 (12:35 -0700)
commitef7de2625fdd40c2d26a10bf87cc1626017adc18
treebcd0e10d8a9c19879cddf3907cd699768f1fa591
parente45d1c80c0eee88e82751461e9cac49d9ed287bc
gpio: zevio: Get correct gpio output value

Read gpio output value from ZEVIO_GPIO_OUTPUT.
The spin_lock is required to ensure the direction is not changed before reading
input/ouput value.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-zevio.c