thermal: mtk: Cleanup unused defines
Subsystems (2)
Matthias Brugger
maintainerPATCH 1/2 thermal: mtk: Cleanup unused defines
The mtk_thermal has some defiens which are never used within the driver. This patch delets them.
--- drivers/thermal/mtk_thermal.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
drivers/thermal/mtk_thermal.c +1 -8
@@ -32,15 +32,10 @@#include <linux/types.h> /* AUXADC Registers */ -#define AUXADC_CON0_V 0x000 -#define AUXADC_CON1_V 0x004#define AUXADC_CON1_SET_V 0x008#define AUXADC_CON1_CLR_V 0x00c#define AUXADC_CON2_V 0x010#define AUXADC_DATA (channel) (0x14 + (channel) * 4) -#define AUXADC_MISC_V 0x094 - -#define AUXADC_CON1_CHANNEL (x) BIT(x)#define APMIXED_SYS_TS_CON1 0x604
@@ -158,8 +153,6 @@/* The number of sensing points per bank */ #define MT2712_NUM_SENSORS_PER_ZONE 4 -#define THERMAL_NAME "mtk-thermal" -struct mtk_thermal ;struct thermal_bank_cfg {
@@ -765,7 +758,7 @@ static struct platform_driver mtk_thermal_driver = { .probe = mtk_thermal_probe, .remove = mtk_thermal_remove, .driver = { - .name = THERMAL_NAME, + .name = "mtk-thermal", .of_match_table = mtk_thermal_of_match, }, };
Signature · 1 line
2.12.3
Matthias Brugger
maintainerQuoted 39 lines · Matthias Brugger
The
mtk_thermalhas some defiens which are never used within the driver. This patch delets them.Signed-off-by Matthias Brugger <[email protected]>--- drivers/thermal/mtk_thermal.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)drivers/thermal/mtk_thermal.c +0
-7@@ -32,15 +32,10 @@#include <linux/types.h> /* AUXADC Registers */ -#define AUXADC_CON0_V 0x000 -#define AUXADC_CON1_V 0x004#define AUXADC_CON1_SET_V 0x008#define AUXADC_CON1_CLR_V 0x00c#define AUXADC_CON2_V 0x010#define AUXADC_DATA (channel) (0x14 + (channel) * 4) -#define AUXADC_MISC_V 0x094 - -#define AUXADC_CON1_CHANNEL (x) BIT(x)#define APMIXED_SYS_TS_CON1 0x604@@ -158,8 +153,6 @@/* The number of sensing points per bank */ #define MT2712_NUM_SENSORS_PER_ZONE 4 -#define THERMAL_NAME "mtk-thermal" -struct mtk_thermal ;struct thermal_bank_cfg {
drivers/thermal/mtk_thermal.c static struct platform_driver mtk_thermal_driver = { · line 764
Quoted 8 lines
drivers/thermal/mtk_thermal.c +1
-1@@ -765,7 +758,7 @@ static struct platform_driver mtk_thermal_driver = { .probe = mtk_thermal_probe, .remove = mtk_thermal_remove, .driver = { - .name = THERMAL_NAME, + .name = "mtk-thermal", .of_match_table = mtk_thermal_of_match, }, };
Kind ping.
Quoted 4 lines · Matthias Brugger
The
mtk_thermalhas some defiens which are never used within the driver. This patch delets them.Signed-off-by Matthias Brugger <[email protected]>
Signature · 5 lines
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Matthias Brugger
maintainerQuoted 5 lines · Matthias Brugger
The
mtk_thermalhas some defiens which are never used within the driver. This patch delets them.Signed-off-by Matthias Brugger <[email protected]>---
Rui, Eduardo, do you have any comments on this patch?
Regards,
Matthias
Quoted 42 lines
drivers/thermal/mtk_thermal.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)drivers/thermal/mtk_thermal.c +1
-8@@ -32,15 +32,10 @@#include <linux/types.h> /* AUXADC Registers */ -#define AUXADC_CON0_V 0x000 -#define AUXADC_CON1_V 0x004#define AUXADC_CON1_SET_V 0x008#define AUXADC_CON1_CLR_V 0x00c#define AUXADC_CON2_V 0x010#define AUXADC_DATA (channel) (0x14 + (channel) * 4) -#define AUXADC_MISC_V 0x094 - -#define AUXADC_CON1_CHANNEL (x) BIT(x)#define APMIXED_SYS_TS_CON1 0x604@@ -158,8 +153,6 @@/* The number of sensing points per bank */ #define MT2712_NUM_SENSORS_PER_ZONE 4 -#define THERMAL_NAME "mtk-thermal" -struct mtk_thermal ;struct thermal_bank_cfg {@@ -765,7 +758,7 @@ static struct platform_driver mtk_thermal_driver = { .probe = mtk_thermal_probe, .remove = mtk_thermal_remove, .driver = { - .name = THERMAL_NAME, + .name = "mtk-thermal", .of_match_table = mtk_thermal_of_match, }, };
Zhang Rui
reviewerQuoted 11 lines · Matthias Brugger
Quoted 7 lines · Matthias Brugger
The
mtk_thermalhas some defiens which are never used within the driver.
This patch delets them.Signed-off-by Matthias Brugger <[email protected]>---
Rui, Eduardo, do you have any comments on this patch?
No, I don't have any.
I suppose Eduardo will review them soon as I need the thermal soc material for next merge window.
thanks,
rui
Quoted 48 lines
Regards,
MatthiasQuoted 45 lines
?drivers/thermal/mtk_thermal.c | 9 +--------
?1 file changed, 1 insertion(+), 8 deletions(-)drivers/thermal/mtk_thermal.c +0
-0@@ -32,15 +32,10 @@?#include <
linux/types.h>
?
?/* AUXADC Registers */drivers/thermal/mtk_thermal.c +0
-2-#define AUXADC_CON0_V 0x000 -#define AUXADC_CON1_V 0x004?#define
AUXADC_CON1_SET_V0x008
?#defineAUXADC_CON1_CLR_V0x00c
?#defineAUXADC_CON2_V0x010
?#defineAUXADC_DATA(channel)(0x14+ (channel) * 4)drivers/thermal/mtk_thermal.c +0
-3-#define AUXADC_MISC_V 0x094 - -#define AUXADC_CON1_CHANNEL (x) BIT(x)?
?#defineAPMIXED_SYS_TS_CON10x604
?drivers/thermal/mtk_thermal.c +0
-0@@ -158,8 +153,6 @@?/* The number of sensing points per bank */
?#defineMT2712_NUM_SENSORS_PER_ZONE4
?drivers/thermal/mtk_thermal.c +0
-2-#define THERMAL_NAME ????"mtk-thermal" -?struct
mtk_thermal;
?
?structthermal_bank_cfg{drivers/thermal/mtk_thermal.c +1
-1@@ -765,7 +758,7 @@ static struct platform_driver mtk_thermal_driver = { ? .probe = mtk_thermal_probe, ? .remove = mtk_thermal_remove, ? .driver = { - .name =THERMAL_NAME , + .name ="mtk-thermal" , ? .of_match_table = mtk_thermal_of_match, ? },?};
Quoted 8 lines · Zhang Rui
Quoted 7 lines · Matthias Brugger
Quoted 5 lines · Matthias Brugger
The
mtk_thermalhas some defiens which are never used within the driver.
This patch delets them.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Matthias Brugger <[email protected]>---
Rui, Eduardo, do you have any comments on this patch?
No, I don't have any.
I suppose Eduardo will review them soon as I need the thermal soc material for next merge window.
Yeah, I will be queueing this soon.