Patchwork [U-Boot] mmc: constify & localize data

login
register
mail settings
Submitter Mike Frysinger
Date Oct. 20, 2010, 11:15 a.m.
Message ID <1287573353-6327-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/71898/
State Accepted
Commit 5f837c2c0ebda8f22474d26f85857993fb81ad7c
Delegated to: Andy Fleming
Headers show

Comments

Mike Frysinger - Oct. 20, 2010, 11:15 a.m.
These local vars need not be writable nor exported.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 drivers/mmc/mmc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

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,