Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Konrad Dybcio and committed by
Daniel Lezcano
007d81a4 6e3e14c9

+2 -2
+2 -2
drivers/thermal/qcom/tsens-v1.c
··· 380 380 .get_temp = get_temp_tsens_valid, 381 381 }; 382 382 383 - /* Valid for both MSM8956 and MSM8976. Sensor ID 3 is unused. */ 383 + /* Valid for both MSM8956 and MSM8976. */ 384 384 struct tsens_plat_data data_8976 = { 385 385 .num_sensors = 11, 386 386 .ops = &ops_8976, 387 - .hw_ids = (unsigned int[]){0, 1, 2, 4, 5, 6, 7, 8, 9, 10}, 387 + .hw_ids = (unsigned int[]){0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 388 388 .feat = &tsens_v1_feat, 389 389 .fields = tsens_v1_regfields, 390 390 };