Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25e64afe authored by Venkat Gopalakrishnan's avatar Venkat Gopalakrishnan Committed by Matt Wagantall
Browse files

mmc: core: declare local stack arrays as const



The array values are readonly and initialized during declaration.

Change-Id: I3abbf15a441300af9828ac907ea67975302d5352
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent ee4ee9d0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,
	};