Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: most: usb: 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 <arvind.yadav.cs@gmail.com>
Acked-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arvind Yadav and committed by
Greg Kroah-Hartman
27acb557 09cbc5de

+1 -1
+1 -1
drivers/staging/most/hdm-usb/hdm_usb.c
··· 832 832 /** 833 833 * usb_device_id - ID table for HCD device probing 834 834 */ 835 - static struct usb_device_id usbid[] = { 835 + static const struct usb_device_id usbid[] = { 836 836 { USB_DEVICE(USB_VENDOR_ID_SMSC, USB_DEV_ID_BRDG), }, 837 837 { USB_DEVICE(USB_VENDOR_ID_SMSC, USB_DEV_ID_OS81118), }, 838 838 { USB_DEVICE(USB_VENDOR_ID_SMSC, USB_DEV_ID_OS81119), },