summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-06-29 19:12:19 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2017-08-30 14:01:27 +0200
commitb388dc3c9a4a418235c789bf69b6d38ac1e5c6fd (patch)
tree1c308cd20d18b61b1c245c834270ca71d6df3756 /drivers/mmc
parent4dc48a95fa20832c972c667efa5518bcf3ece6be (diff)
downloadlinux-b388dc3c9a4a418235c789bf69b6d38ac1e5c6fd.tar.bz2
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/rtsx_usb_sdmmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c b/drivers/mmc/host/rtsx_usb_sdmmc.c
index 12d2fbe9c520..76da1687ab37 100644
--- a/drivers/mmc/host/rtsx_usb_sdmmc.c
+++ b/drivers/mmc/host/rtsx_usb_sdmmc.c
@@ -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,