global: Move remaining CONFIG_SYS_NUM_* to CFG_SYS_NUM_*
The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_NUM namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -34,7 +34,7 @@ struct i2c_adapter *i2c_get_adapter(int index)
|
||||
}
|
||||
|
||||
#if !defined(CONFIG_SYS_I2C_DIRECT_BUS)
|
||||
struct i2c_bus_hose i2c_bus[CONFIG_SYS_NUM_I2C_BUSES] =
|
||||
struct i2c_bus_hose i2c_bus[CFG_SYS_NUM_I2C_BUSES] =
|
||||
CONFIG_SYS_I2C_BUSES;
|
||||
#endif
|
||||
|
||||
@@ -173,7 +173,7 @@ static int i2c_mux_disconnect_all(void)
|
||||
*/
|
||||
static void i2c_init_bus(unsigned int bus_no, int speed, int slaveaddr)
|
||||
{
|
||||
if (bus_no >= CONFIG_SYS_NUM_I2C_BUSES)
|
||||
if (bus_no >= CFG_SYS_NUM_I2C_BUSES)
|
||||
return;
|
||||
|
||||
I2C_ADAP->init(I2C_ADAP, speed, slaveaddr);
|
||||
@@ -238,7 +238,7 @@ int i2c_set_bus_num(unsigned int bus)
|
||||
return 0;
|
||||
|
||||
#ifndef CONFIG_SYS_I2C_DIRECT_BUS
|
||||
if (bus >= CONFIG_SYS_NUM_I2C_BUSES)
|
||||
if (bus >= CFG_SYS_NUM_I2C_BUSES)
|
||||
return -1;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user