summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorZhiwu Song <Zhiwu.Song@csr.com>2013-08-13 17:11:29 +0800
committerWolfram Sang <wsa@the-dreams.de>2013-08-28 11:44:32 +0200
commit4602bf1642dbf8b573fc6c224850114565652b4d (patch)
treec58c0065557f3dbe8c6a479f2f472e8618132521 /drivers/i2c
parentebae7dfab001890bc85d473275cc46611501664a (diff)
downloadlinux-stable-4602bf1642dbf8b573fc6c224850114565652b4d.tar.gz
linux-stable-4602bf1642dbf8b573fc6c224850114565652b4d.tar.bz2
linux-stable-4602bf1642dbf8b573fc6c224850114565652b4d.zip
i2c: sirf: fix the typo for setting bitrate to less than 100k
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-sirf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-sirf.c b/drivers/i2c/busses/i2c-sirf.c
index efb51a1d97ca..3b5fd3854522 100644
--- 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);