提交 dde6256b 编写于 作者: A Arvind Yadav 提交者: Ulf Hansson

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: NArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 a0fd95b3
...@@ -266,7 +266,7 @@ MODULE_PARM_DESC(firmware_rom_wait_states, ...@@ -266,7 +266,7 @@ MODULE_PARM_DESC(firmware_rom_wait_states,
#define ELAN_VENDOR_ID 0x2201 #define ELAN_VENDOR_ID 0x2201
#define VUB300_VENDOR_ID 0x0424 #define VUB300_VENDOR_ID 0x0424
#define VUB300_PRODUCT_ID 0x012C #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(ELAN_VENDOR_ID, VUB300_PRODUCT_ID)},
{USB_DEVICE(VUB300_VENDOR_ID, VUB300_PRODUCT_ID)}, {USB_DEVICE(VUB300_VENDOR_ID, VUB300_PRODUCT_ID)},
{} /* Terminating entry */ {} /* Terminating entry */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册