diff options
Diffstat (limited to 'board/reef_it8320/board.c')
-rw-r--r-- | board/reef_it8320/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/reef_it8320/board.c b/board/reef_it8320/board.c index 82c094095c..db4056e8c2 100644 --- a/board/reef_it8320/board.c +++ b/board/reef_it8320/board.c @@ -84,11 +84,11 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = { }, }; -void board_pd_vconn_ctrl(int port, int cc_pin, int enabled) +void board_pd_vconn_ctrl(int port, enum usbpd_cc_pin cc_pin, int enabled) { int cc1_enabled = 0, cc2_enabled = 0; - if (cc_pin) + if (cc_pin != USBPD_CC_PIN_1) cc2_enabled = enabled; else cc1_enabled = enabled; |