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

Commit b388dc3c authored by Colin Ian King's avatar Colin Ian King Committed by Ulf Hansson
Browse files

mmc: rtsx_usb_sdmmc: make array 'width' static const



array width is on-stack and not modified and should be
made static const.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 4dc48a95
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -909,7 +909,7 @@ static int sd_set_bus_width(struct rtsx_usb_sdmmc *host,
		unsigned char bus_width)
{
	int err = 0;
	u8 width[] = {
	static const u8 width[] = {
		[MMC_BUS_WIDTH_1] = SD_BUS_WIDTH_1BIT,
		[MMC_BUS_WIDTH_4] = SD_BUS_WIDTH_4BIT,
		[MMC_BUS_WIDTH_8] = SD_BUS_WIDTH_8BIT,