From: Toshiharu Okada Date: Mon, 26 Sep 2011 07:16:23 +0000 (+0900) Subject: i2c-eg20t: modified the setting of transfer rate. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff35e8b18984ad2a82cbd259fc07f0be4b34b1aa;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git i2c-eg20t: modified the setting of transfer rate. This patch modified the setting value of I2C Bus Transfer Rate Setting Counter regisrer. Signed-off-by: Toshiharu Okada Signed-off-by: Ben Dooks --- diff --git a/drivers/i2c/busses/i2c-eg20t.c b/drivers/i2c/busses/i2c-eg20t.c index 8dc3f75d2faf..357a66c66064 100644 --- a/drivers/i2c/busses/i2c-eg20t.c +++ b/drivers/i2c/busses/i2c-eg20t.c @@ -243,7 +243,7 @@ static void pch_i2c_init(struct i2c_algo_pch_data *adap) if (pch_clk > PCH_MAX_CLK) pch_clk = 62500; - pch_i2cbc = (pch_clk + (pch_i2c_speed * 4)) / pch_i2c_speed * 8; + pch_i2cbc = (pch_clk + (pch_i2c_speed * 4)) / (pch_i2c_speed * 8); /* Set transfer speed in I2CBC */ iowrite32(pch_i2cbc, p + PCH_I2CBC);