]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mmc: constify & localize data
authorMike Frysinger <vapier@gentoo.org>
Wed, 20 Oct 2010 01:15:53 +0000 (01:15 +0000)
committerAndy Fleming <afleming@freescale.com>
Wed, 13 Apr 2011 11:35:22 +0000 (06:35 -0500)
These local vars need not be writable nor exported.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/mmc.c

index 1355735a52e7bbeff7b7303bb83cd393567ebd04..e8bc4b869a2edbdff1496f72dd5c5762c3dd21f2 100644 (file)
@@ -548,7 +548,7 @@ retry_scr:
 
 /* frequency bases */
 /* divided by 10 to be nice to platforms without floating point */
-int fbase[] = {
+static const int fbase[] = {
        10000,
        100000,
        1000000,
@@ -558,7 +558,7 @@ int fbase[] = {
 /* Multiplier values for TRAN_SPEED.  Multiplied by 10 to be nice
  * to platforms without floating point.
  */
-int multipliers[] = {
+static const int multipliers[] = {
        0,      /* reserved */
        10,
        12,