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

Commit 21b92649 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: qpnp-qg: Fix incorrect reporting of SOC



Report the system_soc if FVSS is disabled.

Change-Id: I4b26edc1ac6c114b486ca4ad3e1703b296760946
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent efe4f92d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ static int qg_process_fvss_soc(struct qpnp_qg *chip, int sys_soc)
	int soc_vbat = 0, wt_vbat = 0, wt_sys = 0, soc_fvss = 0;

	if (!chip->dt.fvss_enable)
		return 0;
		goto exit_soc_scale;

	if (chip->charge_status == POWER_SUPPLY_STATUS_CHARGING)
		goto exit_soc_scale;