aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2012-10-24 02:58:57 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-10-24 04:03:20 -0400
commit41b3996e3b6825bd3a0624d62fde53fbad092ed0 (patch)
treee400c7d8dfcbc29c353e6f8dae16942a98655b20
parentfc4e2514995d9cd7f3e1a67098ce65d72acf8ec7 (diff)
GPIO: clps711x: Fix return value for gpio_clps711x_get
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/gpio/gpio-clps711x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c
index ea21822b3de9..0753b3a9a34d 100644
--- a/drivers/gpio/gpio-clps711x.c
+++ b/drivers/gpio/gpio-clps711x.c
@@ -47,7 +47,7 @@ static void __iomem *clps711x_pdirs[] = {
47 47
48static int gpio_clps711x_get(struct gpio_chip *chip, unsigned offset) 48static int gpio_clps711x_get(struct gpio_chip *chip, unsigned offset)
49{ 49{
50 return !!readb(clps711x_port(chip)) & (1 << offset); 50 return !!(readb(clps711x_port(chip)) & (1 << offset));
51} 51}
52 52
53static void gpio_clps711x_set(struct gpio_chip *chip, unsigned offset, 53static void gpio_clps711x_set(struct gpio_chip *chip, unsigned offset,