]> git.ipfire.org Git - people/arne_f/kernel.git/commit
i2c-pasemi: Fix NACK detection
authorJean Delvare <khali@linux-fr.org>
Fri, 16 Nov 2007 09:24:36 +0000 (10:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Nov 2007 17:25:56 +0000 (09:25 -0800)
commitf67444f10f4e30864fa7b431d88588de87c92980
tree4c5dfb74c36314cda4ddbb7a8934f611509b3730
parent2e95672cd8684beddb2390ed5212ac50e1fd0dae
i2c-pasemi: Fix NACK detection

patch be8a1f7cd4501c3b4b32543577a33aee6d2193ac in mainline.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-pasemi.c