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

Commit df7598c4 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

hwmon: qpnp-adc-current: log the compensation coefficients



The compensation coefficients are used to execute performance tests.
Provide this information in the debug logs of the IADC driver.

Change-Id: I59df9501d8edf652c6cf0999a17cc820115b07cc
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 4df3b004
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -610,7 +610,8 @@ static int32_t qpnp_iadc_comp(int64_t *result, struct qpnp_iadc_chip *iadc,
		temp_var = div64_s64(temp_var * sys_gain_coeff, 1000000);
		*result = div64_s64(*result * 1000, temp_var);
	}
	pr_debug("%lld compensated into %lld\n", old, *result);
	pr_debug("%lld compensated into %lld, a: %d, b: %d, sys_gain: %lld\n",
			old, *result, coeff_a, coeff_b, sys_gain_coeff);

	return 0;
}