OMAP: GPIO: Fix incorrect gpio_get logic for output GPIOs
authorRoger Quadros <ext-roger.quadros@nokia.com>
Wed, 5 Aug 2009 13:53:24 +0000 (16:53 +0300)
committerTony Lindgren <tony@atomide.com>
Wed, 5 Aug 2009 13:53:24 +0000 (16:53 +0300)
commitb37c45b8c27c049dc44673e40fd63820fd9a9d91
treefe3a31bc5e61e7c9d13d64c1c3ec0c7eea9bb5d7
parented680c4ad478d0fee9740f7d029087f181346564
OMAP: GPIO: Fix incorrect gpio_get logic for output GPIOs

gpio_get() should return DATAIN register value when the GPIO
is configured as input whereas it should return DATAOUT register
value when the GPIO is configured as output.
Now /sys/kernel/debug/gpio shows proper values for output GPIOs

Signed-off-by: Roger Quadros <ext-roger.quadros@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/gpio.c