i2c: octeon-core: Use generic definitions for bus frequencies
Subsystems (2)
PATCH 1/1 i2c: octeon-core: Use generic definitions for bus frequencies
Since we have generic definitions for bus frequencies, let's use them.
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/i2c/busses/i2c-octeon-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-octeon-core.h +1 -1
@@ -235,7 +235,7 @@ static inline void octeon_i2c_write_int(struct octeon_i2c *i2c, u64 data)octeon_i2c_writeq_flush (data, i2c->twsi_base +OCTEON_REG_TWSI_INT (i2c)); } -#define IS_LS_FREQ (twsi_freq) ((twsi_freq) <= 400000) +#define IS_LS_FREQ (twsi_freq) ((twsi_freq) <= I2C_MAX_FAST_MODE_FREQ)#define PCI_SUBSYS_DEVID_9XXX 0xB#define PCI_SUBSYS_MASK GENMASK(15, 12)/**
Signature · 1 line
2.50.1