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 b2e32596088d2257b6c0aa24256fbef3d2d608ab..956fe320f313d84c4a0371c32d858192ad7742f1 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,
 };
 
 /**