The current units should be consistent.
The unit of thermal_fcc_ua is ua, but the unit of target_fcc is ma. Change-Id: Ic7065344f417adbd840efe473005861a69428e70 Reviewed-on: https://gerrit.mot.com/2536876 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wentao Xu <xuwt2@motorola.com> Reviewed-by: Guobin Zhang <zhanggb@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
1 parent
08c088e43b
commit
aea77fa8f4
1 file changed
+1
-1
@@ -1550,7 +1550,7 @@ static int sc760x_charger_config_charge(void *data, struct mmi_charger_cfg *conf
|
||||
sc760x_ibat_limit_set, state.vbat_adc, chg->chg_cfg.target_fv * 1000);
|
||||
} else {
|
||||
|
||||
ibat_limit_vote = MIN_VAL(chg->chg_cfg.target_fcc, chg->sc->thermal_fcc_ua);
|
||||
ibat_limit_vote = MIN_VAL(chg->chg_cfg.target_fcc, chg->sc->thermal_fcc_ua / 1000);
|
||||
|
||||
if (sc760x_ibat_limit_set > (ibat_limit_vote + IBAT_CHG_LIM_BASE)) {
|
||||
sc760x_ibat_limit_set -= IBAT_CHG_LIM_BASE;
|
||||
|
||||
Reference in new issue
Block a user