Skip to content

Commit 9befbe1

Browse files
ArvindYadavCsdavem330
authored andcommitted
net: usb: ipheth: 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 7f04c61 commit 9befbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/ipheth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
#define IPHETH_CARRIER_CHECK_TIMEOUT round_jiffies_relative(1 * HZ)
8888
#define IPHETH_CARRIER_ON 0x04
8989

90-
static struct usb_device_id ipheth_table[] = {
90+
static const struct usb_device_id ipheth_table[] = {
9191
{ USB_DEVICE_AND_INTERFACE_INFO(
9292
USB_VENDOR_APPLE, USB_PRODUCT_IPHONE,
9393
IPHETH_USBINTF_CLASS, IPHETH_USBINTF_SUBCLASS,

0 commit comments

Comments
 (0)