Skip to content

Commit

Permalink
i2c: sirf: fix the typo for setting bitrate to less than 100k
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhiwu Song authored and Wolfram Sang committed Aug 28, 2013
1 parent ebae7df commit 4602bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-sirf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4602bf1

Please sign in to comment.