summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-09 23:20:58 +0530
committerUlf Hansson <ulf.hansson@linaro.org>2017-08-30 14:01:58 +0200
commitdde6256bf839e1ece2e9dcfa7dc6fedfa353b4ef (patch)
treed3b6e650f2481d303955fda95496d8fa6840206a
parenta0fd95b30edb12d8be714674dbd5377b0441786b (diff)
downloadlinux-stable-dde6256bf839e1ece2e9dcfa7dc6fedfa353b4ef.tar.gz
linux-stable-dde6256bf839e1ece2e9dcfa7dc6fedfa353b4ef.tar.bz2
linux-stable-dde6256bf839e1ece2e9dcfa7dc6fedfa353b4ef.zip
mmc: vub300: constify usb_device_id
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by <linux/usb.h> work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/vub300.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c
index 6e085974ef6b..8f569d257405 100644
--- a/drivers/mmc/host/vub300.c
+++ b/drivers/mmc/host/vub300.c
@@ -266,7 +266,7 @@ MODULE_PARM_DESC(firmware_rom_wait_states,
#define ELAN_VENDOR_ID 0x2201
#define VUB300_VENDOR_ID 0x0424
#define VUB300_PRODUCT_ID 0x012C
-static struct usb_device_id vub300_table[] = {
+static const struct usb_device_id vub300_table[] = {
{USB_DEVICE(ELAN_VENDOR_ID, VUB300_PRODUCT_ID)},
{USB_DEVICE(VUB300_VENDOR_ID, VUB300_PRODUCT_ID)},
{} /* Terminating entry */