1 From 5716a61239c6ac9ceb137e825e93c3aea06c4634 Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Fri, 19 Mar 2021 00:48:23 +0100
4 Subject: [PATCH 07/10] drivers: thermal: tsens: Drop unused define for msm8960
6 Drop unused define for msm8960 replaced by generic api and reg_field.
8 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
9 Reviewed-by: Thara Gopinath <thara.gopinath@linaro.org>
11 drivers/thermal/qcom/tsens-8960.c | 24 +-----------------------
12 1 file changed, 1 insertion(+), 23 deletions(-)
14 diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c
15 index 9cc8a7dd23ae..58d09e927383 100644
16 --- a/drivers/thermal/qcom/tsens-8960.c
17 +++ b/drivers/thermal/qcom/tsens-8960.c
19 #include <linux/thermal.h>
22 -#define CAL_MDEGC 30000
24 #define CONFIG_ADDR 0x3640
25 #define CONFIG_ADDR_8660 0x3620
26 /* CONFIG_ADDR bitmasks */
28 #define CONFIG_SHIFT_8660 28
29 #define CONFIG_MASK_8660 (3 << CONFIG_SHIFT_8660)
31 -#define STATUS_CNTL_ADDR_8064 0x3660
32 #define CNTL_ADDR 0x3620
33 /* CNTL_ADDR bitmasks */
36 -#define SENSOR0_EN BIT(3)
38 #define MEASURE_PERIOD BIT(18)
39 #define SLP_CLK_ENA BIT(26)
40 #define SLP_CLK_ENA_8660 BIT(24)
41 #define SENSOR0_SHIFT 3
43 -/* INT_STATUS_ADDR bitmasks */
44 -#define MIN_STATUS_MASK BIT(0)
45 -#define LOWER_STATUS_CLR BIT(1)
46 -#define UPPER_STATUS_CLR BIT(2)
47 -#define MAX_STATUS_MASK BIT(3)
49 #define THRESHOLD_ADDR 0x3624
50 -/* THRESHOLD_ADDR bitmasks */
51 -#define THRESHOLD_MAX_LIMIT_SHIFT 24
52 -#define THRESHOLD_MIN_LIMIT_SHIFT 16
53 -#define THRESHOLD_UPPER_LIMIT_SHIFT 8
54 -#define THRESHOLD_LOWER_LIMIT_SHIFT 0
56 -/* Initial temperature threshold values */
57 -#define LOWER_LIMIT_TH 0x50
58 -#define UPPER_LIMIT_TH 0xdf
59 -#define MIN_LIMIT_TH 0x0
60 -#define MAX_LIMIT_TH 0xff
62 #define INT_STATUS_ADDR 0x363c
63 -#define TRDY_MASK BIT(7)
64 -#define TIMEOUT_US 100
66 #define S0_STATUS_OFF 0x3628
67 #define S1_STATUS_OFF 0x362c