Commit 7516dbd4 authored by Arvind Yadav's avatar Arvind Yadav Committed by Kalle Valo

mwifiex: 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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 8a3132fa
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
static struct mwifiex_if_ops usb_ops; static struct mwifiex_if_ops usb_ops;
static struct usb_device_id mwifiex_usb_table[] = { static const struct usb_device_id mwifiex_usb_table[] = {
/* 8766 */ /* 8766 */
{USB_DEVICE(USB8XXX_VID, USB8766_PID_1)}, {USB_DEVICE(USB8XXX_VID, USB8766_PID_1)},
{USB_DEVICE_AND_INTERFACE_INFO(USB8XXX_VID, USB8766_PID_2, {USB_DEVICE_AND_INTERFACE_INFO(USB8XXX_VID, USB8766_PID_2,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment