kernel: bump 4.14 to 4.14.169
[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 --- a/drivers/thermal/mtk_thermal.c
17 +++ b/drivers/thermal/mtk_thermal.c
18 @@ -32,15 +32,10 @@
19 #include <linux/types.h>
20
21 /* AUXADC Registers */
22 -#define AUXADC_CON0_V 0x000
23 -#define AUXADC_CON1_V 0x004
24 #define AUXADC_CON1_SET_V 0x008
25 #define AUXADC_CON1_CLR_V 0x00c
26 #define AUXADC_CON2_V 0x010
27 #define AUXADC_DATA(channel) (0x14 + (channel) * 4)
28 -#define AUXADC_MISC_V 0x094
29 -
30 -#define AUXADC_CON1_CHANNEL(x) BIT(x)
31
32 #define APMIXED_SYS_TS_CON1 0x604
33
34 @@ -158,8 +153,6 @@
35 /* The number of sensing points per bank */
36 #define MT2712_NUM_SENSORS_PER_ZONE 4
37
38 -#define THERMAL_NAME "mtk-thermal"
39 -
40 struct mtk_thermal;
41
42 struct thermal_bank_cfg {
43 @@ -767,7 +760,7 @@ static struct platform_driver mtk_therma
44 .probe = mtk_thermal_probe,
45 .remove = mtk_thermal_remove,
46 .driver = {
47 - .name = THERMAL_NAME,
48 + .name = "mtk-thermal",
49 .of_match_table = mtk_thermal_of_match,
50 },
51 };