From: Mike Frysinger Date: Wed, 20 Oct 2010 07:15:53 -0400 Subject: [U-Boot] [PATCH] mmc: constify & localize data Message-ID: <1287573353-6327-1-git-send-email-vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de These local vars need not be writable nor exported. Signed-off-by: Mike Frysinger --- drivers/mmc/mmc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index c543d83..0e6c710 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -567,7 +567,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, @@ -577,7 +577,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, -- 1.7.3.1