linux-stable/drivers/thermal/qcom
Vincent Knecht fae843447c thermal/drivers/qcom/tsens-v0_1: Fix MSM8939 fourth sensor hw_id
[ Upstream commit b0c883e900 ]

Reading temperature from this sensor fails with 'Invalid argument'.

Looking at old vendor dts [1], its hw_id should be 3 instead of 4.
Change this hw_id accordingly.

[1] https://github.com/msm8916-mainline/android_kernel_qcom_msm8916/blob/master/arch/arm/boot/dts/qcom/msm8939-common.dtsi#L511

Fixes: 332bc8ebab ("thermal: qcom: tsens-v0_1: Add support for MSM8939")
Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20220811105014.7194-1-vincent.knecht@mailoo.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-21 12:39:01 +02:00
..
Kconfig thermal/drivers/qcom/lmh: make QCOM_LMH depends on QCOM_SCM 2021-10-16 20:20:42 +02:00
lmh.c thermal/drivers/qcom/lmh: Add sc8180x compatible 2022-05-19 12:11:52 +02:00
Makefile thermal/drivers/qcom: Add support for LMh driver 2021-08-18 09:32:25 +02:00
qcom-spmi-adc-tm5.c thermal/drivers/qcom/spmi-adc-tm5: Register thermal zones as hwmon sensors 2022-07-28 17:29:51 +02:00
qcom-spmi-temp-alarm.c thermal/drivers/qcom/temp-alarm: Register thermal zones as hwmon sensors 2022-07-28 17:29:50 +02:00
tsens-8960.c thermal/drivers/tsens: Drop unused define for msm8960 2021-04-22 14:10:08 +02:00
tsens-v0_1.c thermal/drivers/qcom/tsens-v0_1: Fix MSM8939 fourth sensor hw_id 2022-10-21 12:39:01 +02:00
tsens-v1.c thermal/drivers/qcom/tsens_v1: Enable sensor 3 on MSM8976 2021-03-17 20:08:30 +01:00
tsens-v2.c drivers: thermal: tsens: Add watchdog support 2020-03-20 12:17:48 +01:00
tsens.c thermal/drivers/qcom: Remove get_trend function 2022-07-28 17:29:45 +02:00
tsens.h thermal/drivers/qcom: Remove get_trend function 2022-07-28 17:29:45 +02:00