Loading drivers/power/supply/qcom/smb5-lib.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -832,10 +832,10 @@ static int smblib_set_usb_pd_allowed_voltage(struct smb_charger *chg, if (vbus_allowance != CONTINUOUS) if (vbus_allowance != CONTINUOUS) return 0; return 0; if (chg->adapter_cc_mode) aicl_threshold = AICL_THRESHOLD_MV_IN_CC; else aicl_threshold = min_allowed_uv / 1000 - CONT_AICL_HEADROOM_MV; aicl_threshold = min_allowed_uv / 1000 - CONT_AICL_HEADROOM_MV; if (chg->adapter_cc_mode) aicl_threshold = min(aicl_threshold, AICL_THRESHOLD_MV_IN_CC); rc = smblib_set_charge_param(chg, &chg->param.aicl_cont_threshold, rc = smblib_set_charge_param(chg, &chg->param.aicl_cont_threshold, aicl_threshold); aicl_threshold); if (rc < 0) { if (rc < 0) { Loading Loading
drivers/power/supply/qcom/smb5-lib.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -832,10 +832,10 @@ static int smblib_set_usb_pd_allowed_voltage(struct smb_charger *chg, if (vbus_allowance != CONTINUOUS) if (vbus_allowance != CONTINUOUS) return 0; return 0; if (chg->adapter_cc_mode) aicl_threshold = AICL_THRESHOLD_MV_IN_CC; else aicl_threshold = min_allowed_uv / 1000 - CONT_AICL_HEADROOM_MV; aicl_threshold = min_allowed_uv / 1000 - CONT_AICL_HEADROOM_MV; if (chg->adapter_cc_mode) aicl_threshold = min(aicl_threshold, AICL_THRESHOLD_MV_IN_CC); rc = smblib_set_charge_param(chg, &chg->param.aicl_cont_threshold, rc = smblib_set_charge_param(chg, &chg->param.aicl_cont_threshold, aicl_threshold); aicl_threshold); if (rc < 0) { if (rc < 0) { Loading