diff options
Diffstat (limited to 'board/servo_v4')
-rw-r--r-- | board/servo_v4/board.h | 2 | ||||
-rw-r--r-- | board/servo_v4/usb_pd_policy.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/board/servo_v4/board.h b/board/servo_v4/board.h index be906787ad..ace902a4c3 100644 --- a/board/servo_v4/board.h +++ b/board/servo_v4/board.h @@ -106,7 +106,7 @@ #define CONFIG_USB_PD_DUAL_ROLE #define CONFIG_USB_PD_DYNAMIC_SRC_CAP #define CONFIG_USB_PD_INTERNAL_COMP -#define CONFIG_USB_PD_PORT_COUNT 2 +#define CONFIG_USB_PD_PORT_MAX_COUNT 2 #define CONFIG_USB_PD_TCPC #define CONFIG_USB_PD_TCPM_STUB #undef CONFIG_USB_PD_PULLUP diff --git a/board/servo_v4/usb_pd_policy.c b/board/servo_v4/usb_pd_policy.c index 138f53a4a7..5c8019dc08 100644 --- a/board/servo_v4/usb_pd_policy.c +++ b/board/servo_v4/usb_pd_policy.c @@ -108,7 +108,7 @@ struct vbus_prop { int mv; int ma; }; -static struct vbus_prop vbus[CONFIG_USB_PD_PORT_COUNT]; +static struct vbus_prop vbus[CONFIG_USB_PD_PORT_MAX_COUNT]; static int active_charge_port = CHARGE_PORT_NONE; static enum charge_supplier active_charge_supplier; static uint8_t vbus_rp = TYPEC_RP_RESERVED; |