summaryrefslogtreecommitdiff
path: root/board/bds
diff options
context:
space:
mode:
Diffstat (limited to 'board/bds')
-rw-r--r--board/bds/board.c2
-rw-r--r--board/bds/board.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/board/bds/board.c b/board/bds/board.c
index 915679d4c3..a9c9a16df6 100644
--- a/board/bds/board.c
+++ b/board/bds/board.c
@@ -36,7 +36,7 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
const struct i2c_port_t i2c_ports[] = {
{"lightbar", I2C_PORT_LIGHTBAR, 400},
};
-BUILD_ASSERT(ARRAY_SIZE(i2c_ports) == I2C_PORTS_USED);
+const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
/* GPIO signal list. Must match order from enum gpio_signal. */
diff --git a/board/bds/board.h b/board/bds/board.h
index f2e7c3d75b..4d83c3c203 100644
--- a/board/bds/board.h
+++ b/board/bds/board.h
@@ -46,8 +46,6 @@ enum pwm_channel {
/* I2C ports */
#define I2C_PORT_LIGHTBAR 5 // port 5 / PA6:7 on link, but PG6:7 on badger
-/* Number of I2C ports used */
-#define I2C_PORTS_USED 1
/* Second UART port */
#define CONFIG_UART_HOST 1