diff mbox

[2/2] gpio: tps65218: Make tps65218_gpio_output set proper output level

Message ID 1455538240.9793.4.camel@ingics.com
State New
Headers show

Commit Message

Axel Lin Feb. 15, 2016, 12:10 p.m. UTC
The .direction_output callback should set proper output level.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/gpio/gpio-tps65218.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Linus Walleij Feb. 16, 2016, 2:58 p.m. UTC | #1
On Mon, Feb 15, 2016 at 1:10 PM, Axel Lin <axel.lin@ingics.com> wrote:

> The .direction_output callback should set proper output level.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Obviously correct, patch applied.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/gpio/gpio-tps65218.c b/drivers/gpio/gpio-tps65218.c
index 7b02f7b..a308a0b 100644
--- a/drivers/gpio/gpio-tps65218.c
+++ b/drivers/gpio/gpio-tps65218.c
@@ -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;
 }