diff mbox series

[01/11] ARM: uniphier: add missing static and const qualifier

Message ID 1484989531-11985-2-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 7a37bd64c5b17de4de28538601c2d81cb84684e7
Headers show
Series ARM: uniphier: recond round of UniPhier updates for v2017.03 | expand

Commit Message

Masahiro Yamada Jan. 21, 2017, 9:05 a.m. UTC
These are file-internal and constant.

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

---

 arch/arm/mach-uniphier/board_init.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.7.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
diff mbox series

Patch

diff --git a/arch/arm/mach-uniphier/board_init.c b/arch/arm/mach-uniphier/board_init.c
index 93330b0..8233a52 100644
--- a/arch/arm/mach-uniphier/board_init.c
+++ b/arch/arm/mach-uniphier/board_init.c
@@ -87,7 +87,7 @@  struct uniphier_initdata {
 	void (*misc_init)(void);
 };
 
-struct uniphier_initdata uniphier_initdata[] = {
+static const struct uniphier_initdata uniphier_initdata[] = {
 #if defined(CONFIG_ARCH_UNIPHIER_SLD3)
 	{
 		.soc_id = SOC_UNIPHIER_SLD3,
@@ -169,7 +169,7 @@  struct uniphier_initdata uniphier_initdata[] = {
 #endif
 };
 
-static struct uniphier_initdata *uniphier_get_initdata(
+static const struct uniphier_initdata *uniphier_get_initdata(
 						enum uniphier_soc_id soc_id)
 {
 	int i;
@@ -184,7 +184,7 @@  static struct uniphier_initdata *uniphier_get_initdata(
 
 int board_init(void)
 {
-	struct uniphier_initdata *initdata;
+	const struct uniphier_initdata *initdata;
 	enum uniphier_soc_id soc_id;
 	int ret;