Jonathan Albrieux
ed1323e4d5
iio:adc:qcom-spmi-vadc: add default scale to LR_MUX2_BAT_ID channel
...
commit 7d200b283aa049fcda0d43dd6e03e9e783d2799c upstream.
Checking at both msm8909-pm8916.dtsi and msm8916.dtsi from downstream
it is indicated that "batt_id" channel has to be scaled with the default
function:
chan@31 {
label = "batt_id";
reg = <0x31>;
qcom,decimation = <0>;
qcom,pre-div-channel-scaling = <0>;
qcom,calibration-type = "ratiometric";
qcom,scale-function = <0>;
qcom,hw-settle-time = <0xb>;
qcom,fast-avg-setup = <0>;
};
Change LR_MUX2_BAT_ID scaling accordingly.
Signed-off-by: Jonathan Albrieux <jonathan.albrieux@gmail.com>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Fixes: 7c271eea7b8a ("iio: adc: spmi-vadc: Changes to support different scaling")
Link: https://lore.kernel.org/r/20210113151808.4628-2-jonathan.albrieux@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-24 11:07:35 +01:00
..
2019-10-17 13:45:12 -07:00
2020-05-02 17:25:49 +02:00
2019-05-31 06:46:24 -07:00
2019-04-27 09:36:35 +02:00
2020-03-25 08:06:10 +01:00
2019-10-17 13:45:13 -07:00
2019-12-31 16:35:33 +01:00
2019-09-16 08:22:06 +02:00
2018-11-13 11:08:47 -08:00
2019-10-17 13:45:12 -07:00
2020-09-17 13:45:27 +02:00
2021-03-24 11:07:35 +01:00
2019-12-31 16:35:17 +01:00
2020-09-17 13:45:27 +02:00
2018-07-08 10:35:17 +01:00
2020-01-09 10:18:55 +01:00
2020-09-17 13:45:26 +02:00
2019-11-06 13:05:39 +01:00
2019-04-05 22:32:57 +02:00
2021-03-24 11:07:35 +01:00
2019-09-16 08:22:22 +02:00
2020-12-30 11:26:15 +01:00
2019-10-17 13:45:23 -07:00
2019-10-17 13:45:23 -07:00
2020-05-27 17:37:44 +02:00
2020-05-27 17:37:45 +02:00
2019-07-31 07:26:56 +02:00
2020-09-17 13:45:27 +02:00
2020-09-17 13:45:27 +02:00
2020-11-05 11:08:50 +01:00
2020-11-05 11:08:50 +01:00
2020-09-17 13:45:26 +02:00
2019-05-31 06:46:25 -07:00
2019-06-09 09:17:15 +02:00
2020-04-29 16:31:26 +02:00
2018-07-29 12:52:21 +01:00