i2c: Set a default timeout value for all adapters
authorJean Delvare <khali@linux-fr.org>
Sat, 28 Mar 2009 20:34:43 +0000 (21:34 +0100)
committerJean Delvare <khali@linux-fr.org>
Sat, 28 Mar 2009 20:34:43 +0000 (21:34 +0100)
commit8fcfef6e65c5b58e6482eae0b793319c8d9efd44
treea41ba5854513ce8492620432920de7e6ad5698d1
parent154d22b04ae1741c5fcfd5d747b813a9a279abff
i2c: Set a default timeout value for all adapters

Setting a default timeout value on a per-algo basis doesn't make any
sense. Move the default value setting to i2c-core. Individual adapter
drivers can specify a different (non-zero) value if they wish.

Also express the timeout value in a way which results in the same
duration regarless of the value of HZ.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/algos/i2c-algo-bit.c
drivers/i2c/algos/i2c-algo-pcf.c
drivers/i2c/i2c-core.c