gpio: adp5588: get value from data out when dir is out
authorJean-Francois Dagenais <jeff.dagenais@gmail.com>
Mon, 10 Feb 2014 17:05:28 +0000 (12:05 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Feb 2014 12:49:16 +0000 (13:49 +0100)
commit992196f28c3c0a589a3d461aab83b7af2eb7b3cf
tree920902a2e78aea7ee0240fb7019d544ea17afe02
parent390d82e312c56b75407a3606cbcde8c4bc7f10ae
gpio: adp5588: get value from data out when dir is out

As discussed here: http://ez.analog.com/message/35852,
the 5587 revC and 5588 revB spec sheets contain a mistake
in the GPIO_DAT_STATx register description.

According to R.Shnell at ADI, as well as my own
observations, it should read:
"GPIO data status (shows GPIO state when read for inputs)".

This commit changes the get value function accordingly.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-adp5588.c