mwifiex: constify usb_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 9 Aug 2017 16:27:59 +0000 (21:57 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Aug 2017 08:56:00 +0000 (11:56 +0300)
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: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/usb.c

index 880ef1cb4088851b0d6d7842ce57b35e9ca4b4c7..f4f2b9b27e3269a4c36f9ab462baad462ad330b2 100644 (file)
@@ -24,7 +24,7 @@
 
 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 */
        {USB_DEVICE(USB8XXX_VID, USB8766_PID_1)},
        {USB_DEVICE_AND_INTERFACE_INFO(USB8XXX_VID, USB8766_PID_2,