提交 4602bf16 编写于 作者: Z Zhiwu Song 提交者: Wolfram Sang

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: NZhiwu Song <Zhiwu.Song@csr.com>
Signed-off-by: NBarry Song <Baohua.Song@csr.com>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 ebae7dfa
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册