projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-octeon.c
b/drivers/i2c/busses/i2c-octeon.c
index b2e32596088d2257b6c0aa24256fbef3d2d608ab..956fe320f313d84c4a0371c32d858192ad7742f1 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
,
};
/**