Skip to content

Commit

Permalink
GPIO: clps711x: Fix return value for gpio_clps711x_get
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Alexander Shiyan authored and Linus Walleij committed Oct 24, 2012
1 parent fc4e251 commit 41b3996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-clps711x.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static void __iomem *clps711x_pdirs[] = {

static int gpio_clps711x_get(struct gpio_chip *chip, unsigned offset)
{
return !!readb(clps711x_port(chip)) & (1 << offset);
return !!(readb(clps711x_port(chip)) & (1 << offset));
}

static void gpio_clps711x_set(struct gpio_chip *chip, unsigned offset,
Expand Down

0 comments on commit 41b3996

Please sign in to comment.