mmc: vub300: constify usb_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 9 Aug 2017 17:50:58 +0000 (23:20 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:58 +0000 (14:01 +0200)
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>
drivers/mmc/host/vub300.c

index 6e085974ef6bc65a6d420b89ebc5070bc343147a..8f569d257405f40b02e5d75eb6afd0662dfaf65c 100644 (file)
@@ -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 */