summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
author송은봉 <eunb.song@samsung.com>2013-04-18 14:01:05 +0000
committerWolfram Sang <wsa@the-dreams.de>2013-04-23 18:29:11 +0200
commit73f37dc3aa566f2533e6fda83a7c0a83657bada5 (patch)
tree18c07ef78e20aa20aa0b7bcb59f81590e092abca /drivers/i2c
parent2637e5fd232d421b680757944f613d4b1a36ae26 (diff)
downloadop-kernel-dev-73f37dc3aa566f2533e6fda83a7c0a83657bada5.zip
op-kernel-dev-73f37dc3aa566f2533e6fda83a7c0a83657bada5.tar.gz
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-octeon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers/i2c/busses/i2c-octeon.c
index b2e3259..956fe32 100644
--- a/drivers/i2c/busses/i2c-octeon.c
+++ b/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,
};
/**
OpenPOWER on IntegriCloud