]> git.baikalelectronics.ru Git - kernel.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)
commit18a4740482434515c0c3b8c53ca1b119c3422b18
tree8864cd2b79f5be9f6aad72288755983cde80bc56
parent4852ef41167675c4415afef76f17f8a12c16b58b
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