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

Commit 04f9e805 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

iio: adc5: Assign calibration values



Use timer calibration as default calibration value for
ADC conversion requests. Using fresh calibration value
will increase overall conversion time for ADC channel requests.

Change-Id: I578ec77fbd5b27a1a110be960a02ef79dd8563c6
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 2ac05052
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -654,6 +654,12 @@ static int adc_get_dt_channel_data(struct device *dev,
	else
		prop->cal_method = ADC_ABSOLUTE_CAL;

	/*
	 * Default to using timer calibration. Using a fresh calibration value
	 * for every conversion will increase the overall time for a request.
	 */
	prop->cal_val = ADC_TIMER_CAL;

	dev_dbg(dev, "%02x name %s\n", chan, name);

	return 0;