summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-acorn.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-02-24 19:19:49 +0100
committerJean Delvare <khali@linux-fr.org>2009-02-24 19:19:49 +0100
commit082a4cf80966ebcd08bf775cd258171cdd85c1a1 (patch)
tree4963477c88ecbe7d8d33ac8412775dca4ebc2205 /drivers/i2c/busses/i2c-acorn.c
parentcd97f39b7cdf1c8a9c9f52865eec795b7f0c811d (diff)
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-acorn.c')
-rw-r--r--drivers/i2c/busses/i2c-acorn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-acorn.c b/drivers/i2c/busses/i2c-acorn.c
index 9fee3ca17344..dddccdd91f93 100644
--- a/drivers/i2c/busses/i2c-acorn.c
+++ b/drivers/i2c/busses/i2c-acorn.c
@@ -79,7 +79,7 @@ static struct i2c_algo_bit_data ioc_data = {
.getsda = ioc_getsda,
.getscl = ioc_getscl,
.udelay = 80,
- .timeout = 100
+ .timeout = HZ,
};
static struct i2c_adapter ioc_ops = {