1 From 68e720ed73c8f038c8c500e4c49c1e65a993a448 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Tue, 6 Apr 2021 04:45:31 +0200
4 Subject: [PATCH 10/10] drivers: thermal: tsens: Fix wrong slope on msm-8960
6 Some user using some stats with the old legacy implementation and the
7 new implementation using the compute_intercept_slope reported an offset
8 of 3C. Fix the slope table to reflect the original temp.
10 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
12 drivers/thermal/qcom/tsens-8960.c | 8 ++++----
13 1 file changed, 4 insertions(+), 4 deletions(-)
15 diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c
16 index 58d09e927383..5cc5b3527f1f 100644
17 --- a/drivers/thermal/qcom/tsens-8960.c
18 +++ b/drivers/thermal/qcom/tsens-8960.c
20 #define S9_STATUS_OFF 0x3674
21 #define S10_STATUS_OFF 0x3678
23 -/* Original slope - 200 to compensate mC to C inaccuracy */
24 +/* Original slope - 350 to compensate mC to C inaccuracy */
25 static u32 tsens_msm8960_slope[] = {
34 static int suspend_8960(struct tsens_priv *priv)