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

Commit b4fece3d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hwmon: qpnp-adc-current: fix current compensation direction"

parents c5647af5 ee8fec35
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1102,10 +1102,12 @@ int32_t qpnp_iadc_read(struct qpnp_iadc_chip *iadc,
		result->result_uv = -result->result_uv;
		result_current = -result_current;
	}
	result_current *= -1;
	rc = qpnp_iadc_comp_result(iadc, &result_current);
	if (rc < 0)
		pr_err("Error during compensating the IADC\n");
	rc = 0;
	result_current *= -1;

	result->result_ua = (int32_t) result_current;
fail: