Commit 7a37bd64c5b17de4de28538601c2d81cb84684e7

Authored by Masahiro Yamada
1 parent 7d75254b3d

ARM: uniphier: add missing static and const qualifier

These are file-internal and constant.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

arch/arm/mach-uniphier/board_init.c
... ... @@ -87,7 +87,7 @@
87 87 void (*misc_init)(void);
88 88 };
89 89  
90   -struct uniphier_initdata uniphier_initdata[] = {
  90 +static const struct uniphier_initdata uniphier_initdata[] = {
91 91 #if defined(CONFIG_ARCH_UNIPHIER_SLD3)
92 92 {
93 93 .soc_id = SOC_UNIPHIER_SLD3,
... ... @@ -169,7 +169,7 @@
169 169 #endif
170 170 };
171 171  
172   -static struct uniphier_initdata *uniphier_get_initdata(
  172 +static const struct uniphier_initdata *uniphier_get_initdata(
173 173 enum uniphier_soc_id soc_id)
174 174 {
175 175 int i;
... ... @@ -184,7 +184,7 @@
184 184  
185 185 int board_init(void)
186 186 {
187   - struct uniphier_initdata *initdata;
  187 + const struct uniphier_initdata *initdata;
188 188 enum uniphier_soc_id soc_id;
189 189 int ret;
190 190