diff options
Diffstat (limited to 'driver')
-rw-r--r-- | driver/tcpm/anx74xx.c | 6 | ||||
-rw-r--r-- | driver/tcpm/fusb302.c | 6 | ||||
-rw-r--r-- | driver/tcpm/it83xx.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/driver/tcpm/anx74xx.c b/driver/tcpm/anx74xx.c index e0c01f52dc..22f1f51e77 100644 --- a/driver/tcpm/anx74xx.c +++ b/driver/tcpm/anx74xx.c @@ -587,15 +587,15 @@ static int anx74xx_check_cc_type(int cc_reg) break; case BIT_VALUE_OF_SNK_CC_DEFAULT: - cc = TYPEC_CC_VOLT_SNK_DEF; + cc = TYPEC_CC_VOLT_RP_DEF; break; case BIT_VALUE_OF_SNK_CC_1_P_5: - cc = TYPEC_CC_VOLT_SNK_1_5; + cc = TYPEC_CC_VOLT_RP_1_5; break; case BIT_VALUE_OF_SNK_CC_3_P_0: - cc = TYPEC_CC_VOLT_SNK_3_0; + cc = TYPEC_CC_VOLT_RP_3_0; break; default: diff --git a/driver/tcpm/fusb302.c b/driver/tcpm/fusb302.c index 68cf14774d..7b736e5b23 100644 --- a/driver/tcpm/fusb302.c +++ b/driver/tcpm/fusb302.c @@ -91,11 +91,11 @@ static int convert_bc_lvl(int port, int bc_lvl) ret = TYPEC_CC_VOLT_RD; } else { if (bc_lvl == 0x1) - ret = TYPEC_CC_VOLT_SNK_DEF; + ret = TYPEC_CC_VOLT_RP_DEF; else if (bc_lvl == 0x2) - ret = TYPEC_CC_VOLT_SNK_1_5; + ret = TYPEC_CC_VOLT_RP_1_5; else if (bc_lvl == 0x3) - ret = TYPEC_CC_VOLT_SNK_3_0; + ret = TYPEC_CC_VOLT_RP_3_0; } return ret; diff --git a/driver/tcpm/it83xx.c b/driver/tcpm/it83xx.c index 8fb6b985c0..f4783c1725 100644 --- a/driver/tcpm/it83xx.c +++ b/driver/tcpm/it83xx.c @@ -84,13 +84,13 @@ static enum tcpc_cc_voltage_status it83xx_get_cc( switch (ufp_volt) { case USBPD_UFP_STATE_SNK_DEF: - cc_state |= (TYPEC_CC_VOLT_SNK_DEF & 3); + cc_state |= (TYPEC_CC_VOLT_RP_DEF & 3); break; case USBPD_UFP_STATE_SNK_1_5: - cc_state |= (TYPEC_CC_VOLT_SNK_1_5 & 3); + cc_state |= (TYPEC_CC_VOLT_RP_1_5 & 3); break; case USBPD_UFP_STATE_SNK_3_0: - cc_state |= (TYPEC_CC_VOLT_SNK_3_0 & 3); + cc_state |= (TYPEC_CC_VOLT_RP_3_0 & 3); break; case USBPD_UFP_STATE_SNK_OPEN: cc_state = TYPEC_CC_VOLT_OPEN; |