Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4602bf16 authored by Zhiwu Song's avatar Zhiwu Song Committed by Wolfram Sang
Browse files

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: default avatarZhiwu Song <Zhiwu.Song@csr.com>
Signed-off-by: default avatarBarry Song <Baohua.Song@csr.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent ebae7dfa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);