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

Commit 6b1a7c9e authored by Linus Walleij's avatar Linus Walleij
Browse files

pinctrl: nomadik: fix inversion of gpio direction



The input/output directions were inversed on the GPIO direction
read function. Loose a ! and it is correct.

Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1a695a90
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -854,7 +854,7 @@ static int nmk_gpio_get_dir(struct gpio_chip *chip, unsigned offset)

	clk_enable(nmk_chip->clk);

	dir = !!(readl(nmk_chip->addr + NMK_GPIO_DIR) & BIT(offset));
	dir = !(readl(nmk_chip->addr + NMK_GPIO_DIR) & BIT(offset));

	clk_disable(nmk_chip->clk);