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

Commit 18cdcb92 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-qg: Fix the check in PON SOC calculation"

parents 6522a2a9 1df92be7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2680,7 +2680,7 @@ static int qg_determine_pon_soc(struct qpnp_qg *chip)
			goto done;
		}

		if ((full_soc - cutoff_soc) > 0 && (pon_soc - cutoff_soc) > 0)
		if ((full_soc > cutoff_soc) && (pon_soc > cutoff_soc))
			soc = DIV_ROUND_UP(((pon_soc - cutoff_soc) * 100),
						(full_soc - cutoff_soc));
		else