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

Commit dac68980 authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Gerrit - the friendly Code Review server
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
and report 0 on success from qg_battery_temp.

Change-Id: Ibdf0015870ebf56cb4565d1a8a342b8f998c68ba
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 5a4fd734
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -361,7 +361,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)