diff options
author | Toshiharu Okada <toshiharu-linux@dsn.okisemi.com> | 2011-09-26 09:16:23 +0200 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2012-01-18 00:28:18 +0100 |
commit | ff35e8b18984ad2a82cbd259fc07f0be4b34b1aa (patch) | |
tree | 1b3ebcca3f333aa7207571e141f3d65f5fab1def /drivers/i2c/busses/i2c-eg20t.c | |
parent | i2c-eg20t: use i2c_add_numbered_adapter to get a fixed bus number (diff) | |
download | linux-ff35e8b18984ad2a82cbd259fc07f0be4b34b1aa.tar.xz linux-ff35e8b18984ad2a82cbd259fc07f0be4b34b1aa.zip |
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 <toshiharu-linux@dsn.okisemi.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-eg20t.c')
-rw-r--r-- | drivers/i2c/busses/i2c-eg20t.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |