[U-Boot] [PATCH] mmc: constify & localize data
Mike Frysinger
vapier at gentoo.org
Wed Oct 20 13:15:53 CEST 2010
These local vars need not be writable nor exported.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
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
More information about the U-Boot
mailing list