Thread (6 messages) 6 messages, 2 authors, 2011-03-16
STALE5594d

[PATCH] i2c: octeon: Make the timeout independent of CONFIG_HZ

From: Bernhard Walle <hidden>
Date: 2011-01-24 12:40:45
Also in: lkml
Subsystem: cavium i2c driver, i2c subsystem, i2c subsystem host drivers, the rest · Maintainers: Robert Richter, Andi Shyti, Linus Torvalds

Since the timeout in the struct i2c_adapter use jiffies as unit and a
timeout should be independent of CONFIG_HZ, use a value of HZ/50 which
is equal to the current value 2 for CONFIG_HZ=100.

Signed-off-by: Bernhard Walle <redacted>
---
 drivers/i2c/busses/i2c-octeon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers/i2c/busses/i2c-octeon.c
index 4cffda5..d07e5c7 100644
--- a/drivers/i2c/busses/i2c-octeon.c
+++ b/drivers/i2c/busses/i2c-octeon.c
@@ -469,7 +469,7 @@ static struct i2c_adapter octeon_i2c_ops = {
 	.owner = THIS_MODULE,
 	.name = "OCTEON adapter",
 	.algo = &octeon_i2c_algo,
-	.timeout = 2,
+	.timeout = HZ/50,
 };
 
 /**
-- 
1.7.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help