Skip to content

Commit 6b1a7c9

Browse files
committed
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: Linus Walleij <[email protected]>
1 parent 1a695a9 commit 6b1a7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/nomadik/pinctrl-nomadik.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ static int nmk_gpio_get_dir(struct gpio_chip *chip, unsigned offset)
854854

855855
clk_enable(nmk_chip->clk);
856856

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

859859
clk_disable(nmk_chip->clk);
860860

0 commit comments

Comments
 (0)