summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenkat Gopalakrishnan <venkatg@codeaurora.org>2015-01-09 17:26:27 -0800
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:26:03 -0700
commitecdef62197414d8d6c294d4d5730ad1460da7154 (patch)
treee4d39252ad6d4611e5deff12f6f99d2607fe01d5
parent58821ee5f6552ebfcf22e8a8ee00cf9da7aad947 (diff)
mmc: core: declare local stack arrays as const
The array values are readonly and initialized during declaration. Change-Id: I3abbf15a441300af9828ac907ea67975302d5352 Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
-rw-r--r--drivers/mmc/core/mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index c2963f43d61c..93b0b596dd20 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -896,11 +896,11 @@ static void mmc_set_bus_speed(struct mmc_card *card)
*/
static int mmc_select_bus_width(struct mmc_card *card)
{
- static unsigned ext_csd_bits[] = {
+ static const unsigned ext_csd_bits[] = {
EXT_CSD_BUS_WIDTH_8,
EXT_CSD_BUS_WIDTH_4,
};
- static unsigned bus_widths[] = {
+ static const unsigned bus_widths[] = {
MMC_BUS_WIDTH_8,
MMC_BUS_WIDTH_4,
};