mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
i2c: nomadik: Use generic definitions for bus frequencies
Since we have generic definitions for bus frequencies, let's use them. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://lore.kernel.org/r/20260618141730.3243303-1-andriy.shevchenko@linux.intel.com
This commit is contained in:
parent
a660c2264f
commit
04e9bf1648
|
|
@ -1050,9 +1050,9 @@ static int nmk_i2c_eyeq5_probe(struct nmk_i2c_dev *priv)
|
|||
if (id >= ARRAY_SIZE(nmk_i2c_eyeq5_masks))
|
||||
return -ENOENT;
|
||||
|
||||
if (priv->clk_freq <= 400000)
|
||||
if (priv->clk_freq <= I2C_MAX_FAST_MODE_FREQ)
|
||||
speed_mode = I2C_EYEQ5_SPEED_FAST;
|
||||
else if (priv->clk_freq <= 1000000)
|
||||
else if (priv->clk_freq <= I2C_MAX_FAST_MODE_PLUS_FREQ)
|
||||
speed_mode = I2C_EYEQ5_SPEED_FAST_PLUS;
|
||||
else
|
||||
speed_mode = I2C_EYEQ5_SPEED_HIGH_SPEED;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user