gpio: sx150x: use the new open drain callback
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 9 Apr 2016 11:13:36 +0000 (13:13 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Apr 2016 12:03:26 +0000 (14:03 +0200)
commit04b8695617fe6efeba5ca20e8be3a5c1879fd74a
treeb2f30ce7468b884913a65418c5f905407646fb81
parentd17322feecf80152303426dd724577025d1fbd7e
gpio: sx150x: use the new open drain callback

One variant of the SX150X GPIO chip supports setting the pins in
open drain mode. This is currently available to set from platform
data, but completely unused in the kernel.

Activate the new .set_single_ended() callback so users can set
this up from e.g. device tree or board files using the new
GPIO descriptors.

As part of this, delete the platform data open drain setting
method.

Cc: Wei Chen <Wei.Chen@csr.com>
Cc: Peter Rosin <peda@axentia.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-sx150x.c