Skip to content

Commit 7f04c61

Browse files
ArvindYadavCsdavem330
authored andcommitted
net: usb: cdc-phonet: 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 2f622c4 commit 7f04c61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/cdc-phonet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static void usbpn_setup(struct net_device *dev)
304304
/*
305305
* USB driver callbacks
306306
*/
307-
static struct usb_device_id usbpn_ids[] = {
307+
static const struct usb_device_id usbpn_ids[] = {
308308
{
309309
.match_flags = USB_DEVICE_ID_MATCH_VENDOR
310310
| USB_DEVICE_ID_MATCH_INT_CLASS

0 commit comments

Comments
 (0)