diff options
Diffstat (limited to 'board/rambi/board.c')
-rw-r--r-- | board/rambi/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/rambi/board.c b/board/rambi/board.c index 6c451ebaea..b864de5ef1 100644 --- a/board/rambi/board.c +++ b/board/rambi/board.c @@ -165,7 +165,7 @@ const struct i2c_port_t i2c_ports[] = { {"batt_chg", I2C_PORT_BATTERY, 100}, {"thermal", I2C_PORT_THERMAL, 100}, }; -BUILD_ASSERT(ARRAY_SIZE(i2c_ports) == I2C_PORTS_USED); +const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); /* Temperature sensors data; must be in same order as enum temp_sensor_id. */ const struct temp_sensor_t temp_sensors[] = { |