mmc: constify & localize data

These local vars need not be writable nor exported.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
master
Mike Frysinger 15 years ago committed by Andy Fleming
parent 63fb5a7e4b
commit 5f837c2c0e
  1. 4
      drivers/mmc/mmc.c

@ -548,7 +548,7 @@ retry_scr:
/* frequency bases */ /* frequency bases */
/* divided by 10 to be nice to platforms without floating point */ /* divided by 10 to be nice to platforms without floating point */
int fbase[] = { static const int fbase[] = {
10000, 10000,
100000, 100000,
1000000, 1000000,
@ -558,7 +558,7 @@ int fbase[] = {
/* Multiplier values for TRAN_SPEED. Multiplied by 10 to be nice /* Multiplier values for TRAN_SPEED. Multiplied by 10 to be nice
* to platforms without floating point. * to platforms without floating point.
*/ */
int multipliers[] = { static const int multipliers[] = {
0, /* reserved */ 0, /* reserved */
10, 10,
12, 12,

Loading…
Cancel
Save