projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dc48a9
)
mmc: rtsx_usb_sdmmc: make array 'width' static const
author
Colin Ian King
<colin.king@canonical.com>
Thu, 29 Jun 2017 18:12:19 +0000
(19:12 +0100)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:27 +0000
(14:01 +0200)
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>
drivers/mmc/host/rtsx_usb_sdmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/rtsx_usb_sdmmc.c
b/drivers/mmc/host/rtsx_usb_sdmmc.c
index 12d2fbe9c520a69741f587d24888b13773bcc74d..76da1687ab370594e0ba5b7fbbfdb6b8cc95ee29 100644
(file)
--- 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,