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

Commit d24a948c authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: qpnp-qg: Fix the error check for battery-temperature



IIO reads return 1 on success, fix the error handling for
battery temperature.

Change-Id: I38264c8d4c5ffaad1f831ffda0677fdc8b41b4d2
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 3424e1d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2549,7 +2549,7 @@ static int qg_determine_pon_soc(struct qpnp_qg *chip)
	}

	rc = qg_get_battery_temp(chip, &batt_temp);
	if (rc) {
	if (rc < 0) {
		pr_err("Failed to read BATT_TEMP at PON rc=%d\n", rc);
		goto done;
	}