Browse Source

PM / 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 <krzk@kernel.org>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Krzysztof Kozlowski 8 năm trước cách đây
mục cha
commit
6b1355f9ac
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/devfreq/event/exynos-ppmu.c

+ 1 - 1
drivers/devfreq/event/exynos-ppmu.c

@@ -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[] = {