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 <apsrir@codeaurora.org>
This commit is contained in:
Archana Sriram
2021-10-28 16:05:16 +05:30
committed by Gerrit - the friendly Code Review server
parent 9e2b9b27e2
commit f64bb2ec2b

View File

@@ -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;