projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebae7df
)
i2c: sirf: fix the typo for setting bitrate to less than 100k
author
Zhiwu Song
<Zhiwu.Song@csr.com>
Tue, 13 Aug 2013 09:11:29 +0000
(17:11 +0800)
committer
Wolfram Sang
<wsa@the-dreams.de>
Wed, 28 Aug 2013 09:44:32 +0000
(11:44 +0200)
there is a typo before, it makes the final bitrate wrong, this patch fixes
it.
Signed-off-by: Zhiwu Song <Zhiwu.Song@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sirf.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-sirf.c
b/drivers/i2c/busses/i2c-sirf.c
index
efb51a1
..
3b5fd38
100644
(file)
--- a/
drivers/i2c/busses/i2c-sirf.c
+++ b/
drivers/i2c/busses/i2c-sirf.c
@@
-356,7
+356,7
@@
static int i2c_sirfsoc_probe(struct platform_device *pdev)
if (bitrate < 100000)
regval =
- (2 * ctrl_speed) / (
2 *
bitrate * 11);
+ (2 * ctrl_speed) / (bitrate * 11);
else
regval = ctrl_speed / (bitrate * 5);