diff options
Diffstat (limited to 'baseboard/intelrvp/ite_ec.c')
-rw-r--r-- | baseboard/intelrvp/ite_ec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/baseboard/intelrvp/ite_ec.c b/baseboard/intelrvp/ite_ec.c index b5a3547269..2faa17ad08 100644 --- a/baseboard/intelrvp/ite_ec.c +++ b/baseboard/intelrvp/ite_ec.c @@ -14,7 +14,7 @@ #include "usb_pd_tcpm.h" /* USB-C TPCP Configuration */ -const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = { +const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { [TYPE_C_PORT_0] = { .bus_type = EC_BUS_TYPE_EMBEDDED, /* TCPC is embedded within EC so no i2c config needed */ @@ -34,7 +34,7 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = { }, #endif /* HAS_TASK_PD_C1 */ }; -BUILD_ASSERT(ARRAY_SIZE(tcpc_config) == CONFIG_USB_PD_PORT_COUNT); +BUILD_ASSERT(ARRAY_SIZE(tcpc_config) == CONFIG_USB_PD_PORT_MAX_COUNT); /* Reset PD MCU */ void board_reset_pd_mcu(void) |