gpio: max732x: fix input configuration for open-drain pins
authorMarc Zyngier <maz@misterjones.org>
Wed, 26 May 2010 21:42:21 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:41 +0000 (09:12 -0700)
commita13c1868aa60ae7a2516b8d00ee8873dea587581
treea90f714d48a3e076ef9093d5eb584e5655fbd5bd
parent5535cb681c38bda94af02ef4b043a25b52303e65
gpio: max732x: fix input configuration for open-drain pins

Fix a bug I noticed while hacking on the max732x driver for interrupt
support.  According to the datasheets, open-drain pins have to be
configured as output-high (which in that case is actually high impedance)
to be used as input.

Signed-off-by: Marc Zyngier <maz@misterjones.org>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/max732x.c