Browse Source

i2c: octeon: use HZ in timeout value

HZ based value is better than a magic number.

Signed-off-by: Eunbong Song <eunb.song@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
송은봉 12 years ago
parent
commit
73f37dc3aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/i2c/busses/i2c-octeon.c

+ 1 - 1
drivers/i2c/busses/i2c-octeon.c

@@ -440,7 +440,7 @@ static struct i2c_adapter octeon_i2c_ops = {
 	.owner = THIS_MODULE,
 	.name = "OCTEON adapter",
 	.algo = &octeon_i2c_algo,
-	.timeout = 2,
+	.timeout = HZ / 50,
 };
 
 /**