thermal/drivers/qcom/tsens_v1: Enable sensor 3 on MSM8976
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Thu, 25 Feb 2021 21:31:19 +0000 (22:31 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 17 Mar 2021 19:08:30 +0000 (20:08 +0100)
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

index 3c19a3800c6d685425f35c46d0a7545bc78749ac..573e261ccca74e7adbfd233e02a27adad610ce65 100644 (file)
@@ -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,
 };