mediatek: backport upstream mediatek patches
[openwrt/openwrt.git] / target / linux / mediatek / patches-4.14 / 0199-thermal-mtk-Cleanup-unused-defines.patch
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
5
6 The mtk_thermal has some defiens which are never used within the driver.
7 This patch delets them.
8
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>
12 ---
13 drivers/thermal/mtk_thermal.c | 9 +--------
14 1 file changed, 1 insertion(+), 8 deletions(-)
15
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
20 @@ -32,15 +32,10 @@
21 #include <linux/types.h>
22
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
31 -
32 -#define AUXADC_CON1_CHANNEL(x) BIT(x)
33
34 #define APMIXED_SYS_TS_CON1 0x604
35
36 @@ -158,8 +153,6 @@
37 /* The number of sensing points per bank */
38 #define MT2712_NUM_SENSORS_PER_ZONE 4
39
40 -#define THERMAL_NAME "mtk-thermal"
41 -
42 struct mtk_thermal;
43
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,
48 .driver = {
49 - .name = THERMAL_NAME,
50 + .name = "mtk-thermal",
51 .of_match_table = mtk_thermal_of_match,
52 },
53 };
54 --
55 2.11.0
56