i2c-algo-pca: Use timeout for checking the state machine
authorWolfram Sang <w.sang@pengutronix.de>
Sat, 28 Mar 2009 20:34:45 +0000 (21:34 +0100)
committerJean Delvare <khali@linux-fr.org>
Sat, 28 Mar 2009 20:34:45 +0000 (21:34 +0100)
commit2378bc09b91b0702fac7823828a614fd8016a29f
tree26539b17077028baba2741cf0e78fc01225a7d36
parent8e99ada8deaa9033600cd2c7d0a9366b0e99ab68
i2c-algo-pca: Use timeout for checking the state machine

We now timeout also if the state machine does not change within the
given time. For that, the driver-specific completion-functions are
extended to return true or false depending on the timeout. This then
gets checked in the algorithm.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/algos/i2c-algo-pca.c
drivers/i2c/busses/i2c-pca-isa.c
drivers/i2c/busses/i2c-pca-platform.c