ARM: dts: msm8974: thermal: Add "qcom,sensors" property
authorAmit Kucheria <amit.kucheria@linaro.org>
Fri, 10 Aug 2018 05:08:09 +0000 (10:38 +0530)
committerAndy Gross <andy.gross@linaro.org>
Wed, 14 Nov 2018 17:30:33 +0000 (09:30 -0800)
This new property allows the number of sensors to be configured from DT
instead of being hardcoded in platform data. Use it.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-msm8974.dtsi

index 35d3d52..c3470f9 100644 (file)
                              <0xfc4a8000 0x1000>; /* SROT */
                        nvmem-cells = <&tsens_calib>, <&tsens_backup>;
                        nvmem-cell-names = "calib", "calib_backup";
+                       #qcom,sensors = <11>;
                        #thermal-sensor-cells = <1>;
                };