diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-03-31 12:46:22 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-04-05 23:00:58 +0200 |
commit | fd6ddaa0f50a1d5235989262ef666713d2903678 (patch) | |
tree | 9cbc985e6ee542596eaba580b5b2b5a79eca0639 /drivers/i2c/busses/i2c-qcom-cci.c | |
parent | i2c: designware: Add driver support for AMD NAVI GPU (diff) | |
download | linux-fd6ddaa0f50a1d5235989262ef666713d2903678.tar.xz linux-fd6ddaa0f50a1d5235989262ef666713d2903678.zip |
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-qcom-cci.c')
-rw-r--r-- | drivers/i2c/busses/i2c-qcom-cci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-qcom-cci.c b/drivers/i2c/busses/i2c-qcom-cci.c index 1c259b5188de..c63d5545fc2a 100644 --- a/drivers/i2c/busses/i2c-qcom-cci.c +++ b/drivers/i2c/busses/i2c-qcom-cci.c @@ -569,9 +569,9 @@ static int cci_probe(struct platform_device *pdev) cci->master[idx].mode = I2C_MODE_STANDARD; ret = of_property_read_u32(child, "clock-frequency", &val); if (!ret) { - if (val == 400000) + if (val == I2C_MAX_FAST_MODE_FREQ) cci->master[idx].mode = I2C_MODE_FAST; - else if (val == 1000000) + else if (val == I2C_MAX_FAST_MODE_PLUS_FREQ) cci->master[idx].mode = I2C_MODE_FAST_PLUS; } |