Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41b3996e authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Linus Walleij
Browse files

GPIO: clps711x: Fix return value for gpio_clps711x_get

parent fc4e2514
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,