diff options
| author | Simon Glass <[email protected]> | 2024-08-11 08:50:46 -0600 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2024-08-13 06:23:05 +0200 |
| commit | 7fca1ae860c1ecab23ae97cc5acfd6cd02b5e74c (patch) | |
| tree | ce421c42a1e7768ff52676335dae17c3e7cb5537 /include | |
| parent | a48ecabaea28791669ce30e57a5623e9d809ba55 (diff) | |
i2c: Remove CFG_SYS_I2C_MAX_HOPS
Now that this is always 0, remove it and the associated dead code.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/i2c.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/i2c.h b/include/i2c.h index f468b52cd7b..180b71f1451 100644 --- a/include/i2c.h +++ b/include/i2c.h @@ -645,15 +645,9 @@ void i2c_early_init_f(void); */ #define I2C_RXTX_LEN 128 /* maximum tx/rx buffer length */ -#if !defined(CFG_SYS_I2C_MAX_HOPS) /* no muxes used bus = i2c adapters */ #define CFG_SYS_I2C_DIRECT_BUS 1 -#define CFG_SYS_I2C_MAX_HOPS 0 #define CFG_SYS_NUM_I2C_BUSES ll_entry_count(struct i2c_adapter, i2c) -#else -/* we use i2c muxes */ -#undef CFG_SYS_I2C_DIRECT_BUS -#endif struct i2c_adapter { void (*init)(struct i2c_adapter *adap, int speed, @@ -712,7 +706,6 @@ struct i2c_next_hop { struct i2c_bus_hose { int adapter; - struct i2c_next_hop next_hop[CFG_SYS_I2C_MAX_HOPS]; }; #define I2C_NULL_HOP {{-1, ""}, 0, 0} extern struct i2c_bus_hose i2c_bus[]; |
