From: Arvind Yadav Date: Tue, 8 Aug 2017 16:49:28 +0000 (+0530) Subject: isdn: hfcsusb: constify usb_device_id X-Git-Tag: v4.14-rc1~130^2~314 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f374771d0f4c311a63a84a68684bbae7b48d7f0d;p=platform%2Fkernel%2Flinux-rpi.git isdn: hfcsusb: constify usb_device_id usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: David S. Miller --- diff --git a/drivers/isdn/hardware/mISDN/hfcsusb.h b/drivers/isdn/hardware/mISDN/hfcsusb.h index 4157311..5f8f1d9 100644 --- a/drivers/isdn/hardware/mISDN/hfcsusb.h +++ b/drivers/isdn/hardware/mISDN/hfcsusb.h @@ -337,7 +337,7 @@ static const char *HFC_NT_LAYER1_STATES[HFC_MAX_NT_LAYER1_STATE + 1] = { }; /* supported devices */ -static struct usb_device_id hfcsusb_idtab[] = { +static const struct usb_device_id hfcsusb_idtab[] = { { USB_DEVICE(0x0959, 0x2bd0), .driver_info = (unsigned long) &((struct hfcsusb_vdata)