i2c: octeon: use HZ in timeout value
author송은봉 <eunb.song@samsung.com>
Thu, 18 Apr 2013 14:01:05 +0000 (14:01 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 23 Apr 2013 16:29:11 +0000 (18:29 +0200)
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>
drivers/i2c/busses/i2c-octeon.c

index b2e3259..956fe32 100644 (file)
@@ -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,
 };
 
 /**