aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2016-01-07 14:04:51 +0100
committerStefan Roese <sr@denx.de>2016-01-14 14:08:59 +0100
commita9fc5a247c2d9dc00de9b96234f4d597836af8bb (patch)
tree3d7e2b13bef811a76f8facc724cddbc88b627653
parentd35831f6fedbdfb0ce49814a225e854e5fa83c99 (diff)
downloadu-boot-a9fc5a247c2d9dc00de9b96234f4d597836af8bb.zip
u-boot-a9fc5a247c2d9dc00de9b96234f4d597836af8bb.tar.gz
u-boot-a9fc5a247c2d9dc00de9b96234f4d597836af8bb.tar.bz2
arm: mvebu: Make local structs static const
As these structs are local only and const, declare them accordingly. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Luka Perkov <luka.perkov@sartura.hr> Cc: Dirk Eibach <dirk.eibach@gdsys.cc> Cc: Phil Sutter <phil@nwl.cc> Cc: Kevin Smith <kevin.smith@elecsyscorp.com>
-rw-r--r--arch/arm/mach-mvebu/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c
index bc6a9e5..84499ea 100644
--- a/arch/arm/mach-mvebu/cpu.c
+++ b/arch/arm/mach-mvebu/cpu.c
@@ -63,7 +63,7 @@ int mvebu_soc_family(void)
#if defined(CONFIG_ARMADA_38X)
/* SAR frequency values for Armada 38x */
-struct sar_freq_modes sar_freq_tab[] = {
+static const struct sar_freq_modes sar_freq_tab[] = {
{ 0x0, 0x0, 666, 333, 333 },
{ 0x2, 0x0, 800, 400, 400 },
{ 0x4, 0x0, 1066, 533, 533 },
@@ -74,7 +74,7 @@ struct sar_freq_modes sar_freq_tab[] = {
};
#else
/* SAR frequency values for Armada XP */
-struct sar_freq_modes sar_freq_tab[] = {
+static const struct sar_freq_modes sar_freq_tab[] = {
{ 0xa, 0x5, 800, 400, 400 },
{ 0x1, 0x5, 1066, 533, 533 },
{ 0x2, 0x5, 1200, 600, 600 },