gpio: wm8994: use the new open drain callback
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 10 Apr 2016 13:07:23 +0000 (15:07 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Apr 2016 12:03:29 +0000 (14:03 +0200)
commit190ea4344bc3fb97c40befd1653a92e9a59fe0f7
treedc87ea2128d06944f199dd25ba8a4a7381b6209a
parent51c27da19d3dbf3219afb225e1626e193c5e1c72
gpio: wm8994: use the new open drain callback

The WM8994 GPIOs clearly have a dedicated open drain control
register. Implement support for controlling this from GPIO
descriptor tables or other hardware descriptions such as
device tree by implementing the .set_single_ended() callback.

Before this patch, lines requesting open drain will just be
switched to input mode by the framework, thus emulating open
drain. But the hardware can do the real thing, so let's
support that.

As part of this, rename the debugfs string for output mode
from "CMOS" to "push-pull" because it is the term used in
the framework to signify a tomem-pole CMOS output.

Cc: patches@opensource.wolfsonmicro.com
Cc: Mark Brown <broonie@kernel.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-wm8994.c
This page took 0.027115 seconds and 5 git commands to generate.