]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
i2c-i801: Clear special mode bits as needed
authorJean Delvare <khali@linux-fr.org>
Sun, 27 Jan 2008 17:14:50 +0000 (18:14 +0100)
committerJean Delvare <khali@hyperion.delvare>
Sun, 27 Jan 2008 17:14:50 +0000 (18:14 +0100)
commita0921b6c07dfbb59ac2d497e96438adaf4940f16
tree46394853267af027c3520a1e8f94aa73df1cc4f5
parent369f6f4aec5315012ff5d951e0179f860c35c181
i2c-i801: Clear special mode bits as needed

Clear special mode bits (PEC, block buffer) at driver load time,
you never know in which state the device was left by its last user.

Also make sure that we reset the block buffer mode at the end of every
transaction, not only when PEC was used.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-i801.c