diff options
author | Toshiharu Okada <toshiharu-linux@dsn.okisemi.com> | 2011-09-26 16:16:23 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-25 17:25:03 -0800 |
commit | a6007c036e0a0e10c0b4dbd533576d201b822a90 (patch) | |
tree | eac884620072ba48124111347c1e8c5e7d1a94f6 /drivers/i2c | |
parent | d7531928ae349a5d59a6820bc3a5e46c9907f5ad (diff) | |
download | kernel_samsung_aries-a6007c036e0a0e10c0b4dbd533576d201b822a90.zip kernel_samsung_aries-a6007c036e0a0e10c0b4dbd533576d201b822a90.tar.gz kernel_samsung_aries-a6007c036e0a0e10c0b4dbd533576d201b822a90.tar.bz2 |
i2c-eg20t: modified the setting of transfer rate.
commit ff35e8b18984ad2a82cbd259fc07f0be4b34b1aa upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c')
-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 8abfa4a..656b028 100644 --- a/drivers/i2c/busses/i2c-eg20t.c +++ b/drivers/i2c/busses/i2c-eg20t.c @@ -242,7 +242,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); |