diff mbox series

[thermal:,thermal/next] thermal/drivers/qcom/tsens_v1: Enable sensor 3 on MSM8976

Message ID 161848824383.29796.4586635689446429556.tip-bot2@tip-bot2
State New
Headers show
Series [thermal:,thermal/next] thermal/drivers/qcom/tsens_v1: Enable sensor 3 on MSM8976 | expand

Commit Message

thermal-bot for Lad Prabhakar April 15, 2021, 12:04 p.m. UTC
The following commit has been merged into the thermal/next branch of thermal:

Commit-ID:     007d81a4519f04fa5ced5e9e28bf70cd753c398d
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//007d81a4519f04fa5ced5e9e28bf70cd753c398d
Author:        Konrad Dybcio <konrad.dybcio@somainline.org>
AuthorDate:    Thu, 25 Feb 2021 22:31:19 +01:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Wed, 17 Mar 2021 20:08:30 +01:00

thermal/drivers/qcom/tsens_v1: Enable sensor 3 on MSM8976

The sensor *is* in fact used and does report temperature.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Acked-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210225213119.116550-1-konrad.dybcio@somainline.org
---
 drivers/thermal/qcom/tsens-v1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/thermal/qcom/tsens-v1.c b/drivers/thermal/qcom/tsens-v1.c
index 3c19a38..573e261 100644
--- a/drivers/thermal/qcom/tsens-v1.c
+++ b/drivers/thermal/qcom/tsens-v1.c
@@ -380,11 +380,11 @@  static const struct tsens_ops ops_8976 = {
 	.get_temp	= get_temp_tsens_valid,
 };
 
-/* Valid for both MSM8956 and MSM8976. Sensor ID 3 is unused. */
+/* Valid for both MSM8956 and MSM8976. */
 struct tsens_plat_data data_8976 = {
 	.num_sensors	= 11,
 	.ops		= &ops_8976,
-	.hw_ids		= (unsigned int[]){0, 1, 2, 4, 5, 6, 7, 8, 9, 10},
+	.hw_ids		= (unsigned int[]){0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10},
 	.feat		= &tsens_v1_feat,
 	.fields		= tsens_v1_regfields,
 };