Skip to content
Commit 7d200b28 authored by Jonathan Albrieux's avatar Jonathan Albrieux Committed by Jonathan Cameron
Browse files

iio:adc:qcom-spmi-vadc: add default scale to LR_MUX2_BAT_ID channel



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: default avatarJonathan Albrieux <jonathan.albrieux@gmail.com>
Acked-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Fixes: 7c271eea ("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: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent a1bfb0cc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment