gpio: tps65218: Make tps65218_gpio_output set proper output level
authorAxel Lin <axel.lin@ingics.com>
Mon, 15 Feb 2016 12:10:40 +0000 (20:10 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Feb 2016 14:58:32 +0000 (15:58 +0100)
The .direction_output callback should set proper output level.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tps65218.c

index 9eb1a5a..2fc7e16 100644 (file)
@@ -59,6 +59,7 @@ static int tps65218_gpio_output(struct gpio_chip *gc, unsigned offset,
                                int value)
 {
        /* Only drives GPOs */
+       tps65218_gpio_set(gc, offset, value);
        return 0;
 }