gpio: tps65218: use the new open drain callback
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 8 Apr 2016 12:13:53 +0000 (14:13 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Apr 2016 12:03:25 +0000 (14:03 +0200)
commitf30e49f1291bc309865f88126005d526421d7e3a
treecfe1ef7cfd44ec2b6a1320dddc24c0f4c8f1b91e
parentdfbd379ba9b7431eec46f1dbc2603491be98619a
gpio: tps65218: use the new open drain callback

The TPS65218 supports open drain mode on its three pins,
with one of them configurable also as push-pull. Use the
new .set_single_ended() callback to set this up properly
from the core, so the core actually see it can drive the
pin(s) as open drain, and does not attempt to emulate
open drain by switching the pin to an input.

Acked-by: Nicolas Saenz Julienne <nicolassaenzj@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tps65218.c