]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a1355201ef07b4365d4c64fa5867def6f7cbc9a
tree26539b17077028baba2741cf0e78fc01225a7d36
parent2dd3bcebb7a0fc05d5125cf87102910599909e3e
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