]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
i2c: Make sure i2c_algo_bit_data.timeout is HZ-independent
authorJean Delvare <khali@linux-fr.org>
Tue, 24 Feb 2009 18:19:49 +0000 (19:19 +0100)
committerJean Delvare <khali@linux-fr.org>
Tue, 24 Feb 2009 18:19:49 +0000 (19:19 +0100)
commit082a4cf80966ebcd08bf775cd258171cdd85c1a1
tree4963477c88ecbe7d8d33ac8412775dca4ebc2205
parentcd97f39b7cdf1c8a9c9f52865eec795b7f0c811d
i2c: Make sure i2c_algo_bit_data.timeout is HZ-independent

i2c_algo_bit_data.timeout is supposed to be in jiffies, so drivers
should use set this value in terms of HZ.

Ultimately I think this field should be discarded in favor of
i2c_adapter.timeout, but that's left for a future patch.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Lennert Buytenhek <kernel@wantstofly.org>
Acked-by: Len Sorensen <lsorense@csclub.uwaterloo.ca>
drivers/i2c/busses/i2c-acorn.c
drivers/i2c/busses/i2c-ixp2000.c
drivers/i2c/busses/scx200_i2c.c