From f64bb2ec2b3d9a5d3a9724d49789ec2b356e457f Mon Sep 17 00:00:00 2001 From: Archana Sriram Date: Thu, 28 Oct 2021 16:05:16 +0530 Subject: [PATCH] thermal: Read raw values for ADC_TM calibration channels Read raw values while measuring reference voltages for ADC TM calibration channels REF_625mv, REF_1250v, REF_VDD and REF_GND. Change-Id: I3f5f032f7ebcd3c526c747de88808d56a907201d Signed-off-by: Archana Sriram --- drivers/thermal/qpnp-adc-tm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/qpnp-adc-tm.c b/drivers/thermal/qpnp-adc-tm.c index 0f81d59022ff..199c74f34726 100644 --- a/drivers/thermal/qpnp-adc-tm.c +++ b/drivers/thermal/qpnp-adc-tm.c @@ -2330,11 +2330,11 @@ static int qpnp_adc_tm_measure_ref_points(struct qpnp_adc_tm_chip *chip) int ret; struct qpnp_adc_drv *adc = chip->adc; - ret = iio_read_channel_processed(chip->ref_1250v, &read_1); + ret = iio_read_channel_raw(chip->ref_1250v, &read_1); if (ret < 0) goto err; - ret = iio_read_channel_processed(chip->ref_625mv, &read_2); + ret = iio_read_channel_raw(chip->ref_625mv, &read_2); if (ret < 0) goto err; @@ -2356,11 +2356,11 @@ static int qpnp_adc_tm_measure_ref_points(struct qpnp_adc_tm_chip *chip) read_1 = 0; read_2 = 0; - ret = iio_read_channel_processed(chip->ref_vdd, &read_1); + ret = iio_read_channel_raw(chip->ref_vdd, &read_1); if (ret < 0) goto err; - ret = iio_read_channel_processed(chip->ref_gnd, &read_2); + ret = iio_read_channel_raw(chip->ref_gnd, &read_2); if (ret < 0) goto err;