Skip to content

Commit 4730279

Browse files
ArvindYadavCsdavem330
authored andcommitted
net: irda: mcs7780: 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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7f4e87e commit 4730279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/irda/mcs7780.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
#define MCS_VENDOR_ID 0x9710
6767
#define MCS_PRODUCT_ID 0x7780
6868

69-
static struct usb_device_id mcs_table[] = {
69+
static const struct usb_device_id mcs_table[] = {
7070
/* MosChip Corp., MCS7780 FIR-USB Adapter */
7171
{USB_DEVICE(MCS_VENDOR_ID, MCS_PRODUCT_ID)},
7272
{},

0 commit comments

Comments
 (0)