]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: menz127: use the new open drain callback
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 9 Apr 2016 19:53:39 +0000 (21:53 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Apr 2016 12:03:27 +0000 (14:03 +0200)
commit811a1882b12bbbcbd447ad8c4d16d170e196c58f
tree28d67527a578012c121f32edc79ab9e10750b95a
parentf90c6bdb690bb12f3dbe8eaa5650a9ce952d0290
gpio: menz127: use the new open drain callback

The menz127 driver tries to support open drain by detecting it
at request time. However: without the new callbacks from the
gpiolib it is not really working: the core will still just emulate
the open drain mode by switching the line to an input.

By adding a hook into the new .set_single_ended() call rather than
trying to autodetect at request() time, proper open drain can be
supported.

Cc: Andreas Werner <andy@wernerandy.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-menz127.c