viafb: fix I2C emulation on GPIO ports
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Thu, 29 Dec 2011 23:37:07 +0000 (23:37 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 12 Feb 2012 22:15:16 +0000 (22:15 +0000)
commit2c4c8a8a73b64a8ea86ad85d8a59a5914d2f81ea
tree5bd6026c0b94b208b7ff632651c3587fae5ff776
parente75892715db800ee96fe4ac0407b73b57d866a68
viafb: fix I2C emulation on GPIO ports

This patch fixes the I2C emulation on GPIO ports by enabling it
(software controlled) and disabling the output on a GPIO line before
reading it.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/via/via_i2c.c