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>
This commit is contained in:
Alexander Shiyan 2012-10-24 10:58:57 +04:00 committed by Linus Walleij
parent fc4e251499
commit 41b3996e3b
1 changed files with 1 additions and 1 deletions

View File

@ -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,