android_kernel_xiaomi_sm8450/drivers/thermal/qcom
Dmitry Baryshkov 695f1d9431 thermal/drivers/tsens: Sort out msm8976 vs msm8956 data
[ Upstream commit a7d3006be5ca7b04e4b84b5ceaae55a700e511bd ]

Tsens driver mentions that msm8976 data should be used for both msm8976
and msm8956 SoCs. This is not quite correct, as according to the
vendor kernels, msm8976 should use standard slope values (3200), while
msm8956 really uses the slope values found in the driver.

Add separate compatibility string for msm8956, move slope value
overrides to the corresponding init function and use the standard
compute_intercept_slope() function for both platforms.

Fixes: 0e58029017 ("thermal: qcom: tsens-v1: Add support for MSM8956 and MSM8976")
Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230101194034.831222-7-dmitry.baryshkov@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 16:39:21 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile drivers: thermal: tsens: Merge tsens-common.c into tsens.c 2020-05-22 18:53:04 +02:00
qcom-spmi-temp-alarm.c thermal: qcom-spmi-temp-alarm: Don't suppress negative temp 2020-09-04 11:52:54 +02:00
tsens-8960.c drivers: thermal: tsens: Pass around struct tsens_sensor as a constant 2020-03-20 12:17:48 +01:00
tsens-v0_1.c thermal/drivers/qcom/tsens-v0_1: Fix MSM8939 fourth sensor hw_id 2022-10-26 13:25:43 +02:00
tsens-v1.c thermal/drivers/tsens: Sort out msm8976 vs msm8956 data 2023-03-11 16:39:21 +01:00
tsens-v2.c drivers: thermal: tsens: Add watchdog support 2020-03-20 12:17:48 +01:00
tsens.c thermal/drivers/tsens: Sort out msm8976 vs msm8956 data 2023-03-11 16:39:21 +01:00
tsens.h thermal/drivers/tsens: Sort out msm8976 vs msm8956 data 2023-03-11 16:39:21 +01:00