]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
i2c-pasemi: Fix NACK detection
authorOlof Johansson <olof@lixom.net>
Thu, 15 Nov 2007 18:24:02 +0000 (19:24 +0100)
committerJean Delvare <khali@hyperion.delvare>
Thu, 15 Nov 2007 18:24:02 +0000 (19:24 +0100)
commitbe8a1f7cd4501c3b4b32543577a33aee6d2193ac
tree8864cd2b79f5be9f6aad72288755983cde80bc56
parentff23f3eabbaa4fc398e0ce109a8688db29d95d78
i2c-pasemi: Fix NACK detection

Turns out we don't actually check the status to see if there was a
device out there to talk to, just if we had a timeout when doing so.

Add the proper check, so we don't falsly think there are devices
on the bus that are not there, etc.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-pasemi.c