summaryrefslogtreecommitdiff
path: root/board/flapjack/usb_pd_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/flapjack/usb_pd_policy.c')
-rw-r--r--board/flapjack/usb_pd_policy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/flapjack/usb_pd_policy.c b/board/flapjack/usb_pd_policy.c
index d4a5c0aa5c..b2c992b4e2 100644
--- a/board/flapjack/usb_pd_policy.c
+++ b/board/flapjack/usb_pd_policy.c
@@ -219,9 +219,9 @@ int pd_custom_vdm(int port, int cnt, uint32_t *payload,
}
#ifdef CONFIG_USB_PD_ALT_MODE_DFP
-static int dp_flags[CONFIG_USB_PD_PORT_COUNT];
+static int dp_flags[CONFIG_USB_PD_PORT_MAX_COUNT];
/* DP Status VDM as returned by UFP */
-static uint32_t dp_status[CONFIG_USB_PD_PORT_COUNT];
+static uint32_t dp_status[CONFIG_USB_PD_PORT_MAX_COUNT];
static void svdm_safe_dp_mode(int port)
{
@@ -280,7 +280,7 @@ static int svdm_dp_config(int port, uint32_t *payload)
* 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];
static void svdm_dp_post_config(int port)
{