projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2637e5f
)
i2c: octeon: use HZ in timeout value
author
송은봉
<eunb.song@samsung.com>
Thu, 18 Apr 2013 14:01:05 +0000
(14:01 +0000)
committer
Wolfram 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
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-octeon.c
b/drivers/i2c/busses/i2c-octeon.c
index
b2e3259
..
956fe32
100644
(file)
--- 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
,
};
/**