]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
arm: mvebu: Make local structs static const
authorStefan Roese <sr@denx.de>
Thu, 7 Jan 2016 13:04:51 +0000 (14:04 +0100)
committerStefan Roese <sr@denx.de>
Thu, 14 Jan 2016 13:08:59 +0000 (14:08 +0100)
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>
arch/arm/mach-mvebu/cpu.c

index bc6a9e546cbaa1c0b1938451e72ad7907b61c3f7..84499ea16225b5c486220363246c68e948460e62 100644 (file)
@@ -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 },