From 5f837c2c0ebda8f22474d26f85857993fb81ad7c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 20 Oct 2010 01:15:53 +0000 Subject: [PATCH] mmc: constify & localize data These local vars need not be writable nor exported. Signed-off-by: Mike Frysinger Signed-off-by: Andy Fleming --- drivers/mmc/mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.39.2