linux/drivers/i2c/algos
Roel Kluin 94d78e180c i2c-algo-pcf: Handle timeout correctly
With a postfix decrement these timeouts reach -1 rather than 0, but after the
loop it is tested whether they have become 0.

As pointed out by Jean Delvare, the msg_num should be tested before the timeout.
With the current order, you could exit with a timeout error while all the
messages were successfully transferred.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Eric Brower <ebrower@gmail.com>
2009-03-28 21:34:42 +01:00
..
i2c-algo-bit.c i2c: Bus drivers return -Errno not -1 2008-07-14 22:38:25 +02:00
i2c-algo-pca.c i2c-pca-algo: Fix error code 2008-07-14 22:38:26 +02:00
i2c-algo-pcf.c i2c-algo-pcf: Handle timeout correctly 2009-03-28 21:34:42 +01:00
i2c-algo-pcf.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
i2c-algo-sgi.c i2c-algo-sgi: Comment and whitespace cleanups 2007-05-01 23:26:32 +02:00
Kconfig i2c: Let users select algorithm drivers manually again 2008-08-10 22:56:15 +02:00
Makefile i2c: Delete the broken i2c-ite bus driver 2006-12-10 21:21:29 +01:00