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 9eb1a5ab2d95372a3da7c62b926f4dd83c18f9f2..2fc7e16aee0c4be0bf8f5bc4b37c5447bd3828ad 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;
 }