]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2a7d063e14516d1e0072a0c8b955d3ce6ff0757
treecfe1ef7cfd44ec2b6a1320dddc24c0f4c8f1b91e
parent7ae15b4763969d81e3553ab93e22f60072beea32
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