summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorBibek Basu <bibek.basu@stericsson.com>2011-04-07 11:38:06 +0530
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 15:15:04 +0200
commitce128447c31a55c8bab73d8c9dc4d474ba6da155 (patch)
tree5d45ce9f18a2d6c4fa8d204fde055b0fc858ba47 /drivers/gpio
parentdde368986c4970c3849a7293e19072ffb8472a23 (diff)
U8500 : Register read corrected in get_value api
Register read is corrected from "AB8500_GPIO_OUT1_REG" to "AB8500_GPIO_IN1_REG" in get_value api ST-Ericsson ID: ER333787 Signed-off-by: Bibek Basu <bibek.basu@stericsson.com> Change-Id: Iff1e4bf5c06c8152ff2f4f899420da92f7495d8c Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/20184 Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com> Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/ab8500-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/ab8500-gpio.c b/drivers/gpio/ab8500-gpio.c
index d5bfbc40cdd..b3a604addc6 100644
--- a/drivers/gpio/ab8500-gpio.c
+++ b/drivers/gpio/ab8500-gpio.c
@@ -116,7 +116,7 @@ static int ab8500_gpio_get(struct gpio_chip *chip, unsigned offset)
{
struct ab8500_gpio *ab8500_gpio = to_ab8500_gpio(chip);
u8 mask = 1 << (offset % 8);
- u8 reg = AB8500_GPIO_OUT1_REG + (offset / 8);
+ u8 reg = AB8500_GPIO_IN1_REG + (offset / 8);
int ret;
u8 data;
ret = abx500_get_register_interruptible(ab8500_gpio->dev, AB8500_MISC,