mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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]>
This commit is contained in:
parent
1a695a905c
commit
6b1a7c9ecd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue