]> git.baikalelectronics.ru Git - kernel.git/commitdiff
PM / devfreq: exynos-ppmu: Staticize event list
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 7 Jun 2017 18:12:28 +0000 (20:12 +0200)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 12 Jun 2017 01:12:07 +0000 (10:12 +0900)
The ppmu_events array is accessed only in this compilation unit so it
can be made static.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/event/exynos-ppmu.c

index 8f6537aa989b093640ddbbbfdd0890f671717569..d96e3dc71cf8ba74fa92078d97c79d434344c949 100644 (file)
@@ -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[] = {