devfreq: exynos-ppmu: Staticize event list
Krzysztof Kozlowski
maintainerPATCH 1/1 devfreq: exynos-ppmu: Staticize event list
The ppmu_events array is accessed only in this compilation unit so it can be made static.
Signed-off-by Krzysztof Kozlowski <[email protected]>
--- drivers/devfreq/event/exynos-ppmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/devfreq/event/exynos-ppmu.c +1 -1
@@ -44,7 +44,7 @@ struct exynos_ppmu { { "ppmu-event2-"#name, PPMU_PMNCNT2 }, \ { "ppmu-event3-"#name, PPMU_PMNCNT3 } -struct __exynos_ppmu_events { +static struct __exynos_ppmu_events {char *name;int id; } ppmu_events[] = {
Signature · 1 line
2.9.3
Hi Krzysztof,
Quoted 14 lines · Krzysztof Kozlowski
The
ppmu_eventsarray is accessed only in this compilation unit so it can be made static.Signed-off-by Krzysztof Kozlowski <[email protected]>--- drivers/devfreq/event/exynos-ppmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/devfreq/event/exynos-ppmu.c +0
-0
drivers/devfreq/event/exynos-ppmu.c struct exynos_ppmu { · line 50
Quoted 8 lines
drivers/devfreq/event/exynos-ppmu.c +1
-1@@ -44,7 +44,7 @@ struct exynos_ppmu { { "ppmu-event2-"#name, PPMU_PMNCNT2 }, \ { "ppmu-event3-"#name, PPMU_PMNCNT3 } -struct __exynos_ppmu_events { +static struct __exynos_ppmu_events {char *name;int id; } ppmu_events[] = {
Looks good to me.
Acked-by Chanwoo Choi <[email protected]>
Signature · 3 lines
Best Regards, Chanwoo Choi Samsung Electronics
Quoted 27 lines
Hi Krzysztof,
Quoted 14 lines · Krzysztof Kozlowski
The
ppmu_eventsarray is accessed only in this compilation unit so it can be made static.Signed-off-by Krzysztof Kozlowski <[email protected]>--- drivers/devfreq/event/exynos-ppmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/devfreq/event/exynos-ppmu.c +0
-0drivers/devfreq/event/exynos-ppmu.c struct exynos_ppmu { · line 50
Quoted 8 lines
drivers/devfreq/event/exynos-ppmu.c +1
-1@@ -44,7 +44,7 @@ struct exynos_ppmu { { "ppmu-event2-"#name, PPMU_PMNCNT2 }, \ { "ppmu-event3-"#name, PPMU_PMNCNT3 } -struct __exynos_ppmu_events { +static struct __exynos_ppmu_events {char *name;int id; } ppmu_events[] = {Looks good to me.
Quoted 1 line
Acked-by Chanwoo Choi <[email protected]>
Acked-by MyungJoo Ham <[email protected]>
Cheers,
MyungJoo