From ecdef62197414d8d6c294d4d5730ad1460da7154 Mon Sep 17 00:00:00 2001 From: Venkat Gopalakrishnan Date: Fri, 9 Jan 2015 17:26:27 -0800 Subject: 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 --- drivers/mmc/core/mmc.c | 4 ++-- 1 file 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, }; -- cgit v1.2.3