diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-03-31 13:46:22 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-04-05 23:00:58 +0200 |
commit | fd6ddaa0f50a1d5235989262ef666713d2903678 (patch) | |
tree | 9cbc985e6ee542596eaba580b5b2b5a79eca0639 /drivers/i2c/busses/i2c-designware-master.c | |
parent | 17631e8ca2d3421090e54b39d9a1402091019ba1 (diff) | |
download | linux-fd6ddaa0f50a1d5235989262ef666713d2903678.tar.bz2 |
i2c: drivers: Use generic definitions for bus frequencies (part 2)
Since we have generic definitions for bus frequencies, let's use them.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Khalil Blaiech <kblaiech@nvidia.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-master.c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-master.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-designware-master.c b/drivers/i2c/busses/i2c-designware-master.c index e288b654cb47..8a59470a82ad 100644 --- a/drivers/i2c/busses/i2c-designware-master.c +++ b/drivers/i2c/busses/i2c-designware-master.c @@ -82,7 +82,7 @@ static int i2c_dw_set_timings_master(struct dw_i2c_dev *dev) * difference is the timing parameter values since the registers are * the same. */ - if (t->bus_freq_hz == 1000000) { + if (t->bus_freq_hz == I2C_MAX_FAST_MODE_PLUS_FREQ) { /* * Check are Fast Mode Plus parameters available. Calculate * SCL timing parameters for Fast Mode Plus if not set. |