1 From 8bf9b7eeef3f5f4866d66878db75b6b944a8eab4 Mon Sep 17 00:00:00 2001
2 From: Matthias Brugger <matthias.bgg@gmail.com>
3 Date: Fri, 1 Dec 2017 11:43:21 +0100
4 Subject: [PATCH 199/224] thermal: mtk: Cleanup unused defines
6 The mtk_thermal has some defiens which are never used within the driver.
7 This patch delets them.
9 Signed-off-by: Matthias Brugger <mbrugger@suse.com>
10 Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
11 Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
13 drivers/thermal/mtk_thermal.c | 9 +--------
14 1 file changed, 1 insertion(+), 8 deletions(-)
16 diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c
17 index 1e61c09153c9..c75661a3801a 100644
18 --- a/drivers/thermal/mtk_thermal.c
19 +++ b/drivers/thermal/mtk_thermal.c
21 #include <linux/types.h>
23 /* AUXADC Registers */
24 -#define AUXADC_CON0_V 0x000
25 -#define AUXADC_CON1_V 0x004
26 #define AUXADC_CON1_SET_V 0x008
27 #define AUXADC_CON1_CLR_V 0x00c
28 #define AUXADC_CON2_V 0x010
29 #define AUXADC_DATA(channel) (0x14 + (channel) * 4)
30 -#define AUXADC_MISC_V 0x094
32 -#define AUXADC_CON1_CHANNEL(x) BIT(x)
34 #define APMIXED_SYS_TS_CON1 0x604
37 /* The number of sensing points per bank */
38 #define MT2712_NUM_SENSORS_PER_ZONE 4
40 -#define THERMAL_NAME "mtk-thermal"
44 struct thermal_bank_cfg {
45 @@ -765,7 +758,7 @@ static struct platform_driver mtk_thermal_driver = {
46 .probe = mtk_thermal_probe,
47 .remove = mtk_thermal_remove,
49 - .name = THERMAL_NAME,
50 + .name = "mtk-thermal",
51 .of_match_table = mtk_thermal_of_match,