summaryrefslogtreecommitdiff
path: root/driver/tcpm/anx7447.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/tcpm/anx7447.c')
-rw-r--r--driver/tcpm/anx7447.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/tcpm/anx7447.c b/driver/tcpm/anx7447.c
index eae3b94c54..3df6109a0e 100644
--- a/driver/tcpm/anx7447.c
+++ b/driver/tcpm/anx7447.c
@@ -47,7 +47,7 @@ struct anx_state {
static int anx7447_mux_set(int port, mux_state_t mux_state);
-static struct anx_state anx[CONFIG_USB_PD_PORT_COUNT];
+static struct anx_state anx[CONFIG_USB_PD_PORT_MAX_COUNT];
/*
* ANX7447 has two co-existence I2C slave addresses, TCPC slave address and
@@ -438,7 +438,7 @@ static void anx7447_tcpc_alert(int port)
* timestamp of the next possible toggle to ensure the 2-ms spacing
* between IRQ_HPD.
*/
-static uint64_t hpd_deadline[CONFIG_USB_PD_PORT_COUNT];
+static uint64_t hpd_deadline[CONFIG_USB_PD_PORT_MAX_COUNT];
void anx7447_tcpc_update_hpd_status(int port, int hpd_lvl, int hpd_irq)
{