gpio: sch311x: Implement open drain support
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Jun 2018 09:00:44 +0000 (11:00 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 2 Jul 2018 14:00:49 +0000 (16:00 +0200)
commit4455a82a400ba462db8abb642c670555d505bccc
treee0d3d9d0123bd497a79e00c4be8af445125a1ca4
parent4a2398d7211f8f750b717ce4a2b0d117385f2a4a
gpio: sch311x: Implement open drain support

The chip has a bit for controlling open drain, and it is
easy to implement the callback to support open drain when
needed, so let's implement it.

Cc: Bruno Randolf <br1@einfach.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-sch311x.c