From: Mike Frysinger Date: Wed, 20 Oct 2010 01:15:53 +0000 (+0000) Subject: mmc: constify & localize data X-Git-Tag: v2011.06-rc1~147^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5f837c2c0ebda8f22474d26f85857993fb81ad7c;p=u-boot mmc: constify & localize data These local vars need not be writable nor exported. Signed-off-by: Mike Frysinger Signed-off-by: Andy Fleming --- diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 1355735a52..e8bc4b869a 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -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,