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

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

power: qpnp-qg: Fix the return value



The return value should be 0 on success, however
the iio read reports 1 on success, ignore this
by reporting 0 on success from qg_battery_temp.

Change-Id: Ibdf0015870ebf56cb4565d1a8a342b8f998c68ba
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent d8ccfa1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -368,7 +368,7 @@ int qg_get_battery_temp(struct qpnp_qg *chip, int *temp)
	}
	pr_debug("batt_temp = %d\n", *temp);

	return rc;
	return 0;
}

int qg_get_battery_current(struct qpnp_qg *chip, int *ibat_ua)