Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5deaff5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-smbcharger: Correct ibatt calculation for ESR pulse"

parents 72ba595f f831210d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1967,6 +1967,7 @@ static int smbchg_sw_esr_pulse_en(struct smbchg_chip *chip, bool en)
		return 0;
	}

	fg_current_now = abs(fg_current_now) / 1000;
	icl_ma = max(chip->iterm_ma + ESR_PULSE_CURRENT_DELTA_MA,
				fg_current_now - ESR_PULSE_CURRENT_DELTA_MA);
	rc = vote(chip->fcc_votable, ESR_PULSE_FCC_VOTER, en, icl_ma);