提交 41b3996e 编写于 作者: A Alexander Shiyan 提交者: Linus Walleij

GPIO: clps711x: Fix return value for gpio_clps711x_get

Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 fc4e2514
...@@ -47,7 +47,7 @@ static void __iomem *clps711x_pdirs[] = { ...@@ -47,7 +47,7 @@ static void __iomem *clps711x_pdirs[] = {
static int gpio_clps711x_get(struct gpio_chip *chip, unsigned offset) 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, static void gpio_clps711x_set(struct gpio_chip *chip, unsigned offset,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册