mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
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>
This commit is contained in:
parent
09cbc5de15
commit
27acb55764
1 changed files with 1 additions and 1 deletions
|
@ -832,7 +832,7 @@ static const struct file_operations hdm_usb_fops = {
|
|||
/**
|
||||
* usb_device_id - ID table for HCD device probing
|
||||
*/
|
||||
static struct usb_device_id usbid[] = {
|
||||
static const struct usb_device_id usbid[] = {
|
||||
{ USB_DEVICE(USB_VENDOR_ID_SMSC, USB_DEV_ID_BRDG), },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_SMSC, USB_DEV_ID_OS81118), },
|
||||
{ USB_DEVICE(USB_VENDOR_ID_SMSC, USB_DEV_ID_OS81119), },
|
||||
|
|
Loading…
Reference in a new issue