Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: moxart: Actually set output state in moxart_gpio_direction_output()

moxart_gpio_direction_output() ignored the state passed into it. Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Axel Lin and committed by
Linus Walleij
fc860356 c9e8dbad

+1
+1
drivers/gpio/gpio-moxart.c
··· 88 88 struct moxart_gpio_chip *gc = to_moxart_gpio(chip); 89 89 void __iomem *ioaddr = gc->base + GPIO_PIN_DIRECTION; 90 90 91 + moxart_gpio_set(chip, offset, value); 91 92 writel(readl(ioaddr) | BIT(offset), ioaddr); 92 93 return 0; 93 94 }