Loading drivers/power/supply/qcom/qpnp-smb5.c +2 −1 Original line number Diff line number Diff line Loading @@ -3510,11 +3510,12 @@ static int smb5_init_typec_class(struct smb5 *chip) struct smb_charger *chg = &chip->chg; int rc = 0; mutex_init(&chg->typec_lock); /* Register typec class for only non-PD TypeC and uUSB designs */ if (!chg->pd_not_supported) return rc; mutex_init(&chg->typec_lock); chg->typec_caps.type = TYPEC_PORT_DRP; chg->typec_caps.data = TYPEC_PORT_DRD; chg->typec_partner_desc.usb_pd = false; Loading Loading
drivers/power/supply/qcom/qpnp-smb5.c +2 −1 Original line number Diff line number Diff line Loading @@ -3510,11 +3510,12 @@ static int smb5_init_typec_class(struct smb5 *chip) struct smb_charger *chg = &chip->chg; int rc = 0; mutex_init(&chg->typec_lock); /* Register typec class for only non-PD TypeC and uUSB designs */ if (!chg->pd_not_supported) return rc; mutex_init(&chg->typec_lock); chg->typec_caps.type = TYPEC_PORT_DRP; chg->typec_caps.data = TYPEC_PORT_DRD; chg->typec_partner_desc.usb_pd = false; Loading