media: 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. 'drivers/media/usb/b2c2/flexcop-usb.c' Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
a3b215ea60
commit
7fb2e072d4
@@ -33,7 +33,7 @@ static void as102_usb_stop_stream(struct as102_dev_t *dev);
|
||||
static int as102_open(struct inode *inode, struct file *file);
|
||||
static int as102_release(struct inode *inode, struct file *file);
|
||||
|
||||
static struct usb_device_id as102_usb_id_table[] = {
|
||||
static const struct usb_device_id as102_usb_id_table[] = {
|
||||
{ USB_DEVICE(AS102_USB_DEVICE_VENDOR_ID, AS102_USB_DEVICE_PID_0001) },
|
||||
{ USB_DEVICE(PCTV_74E_USB_VID, PCTV_74E_USB_PID) },
|
||||
{ USB_DEVICE(ELGATO_EYETV_DTT_USB_VID, ELGATO_EYETV_DTT_USB_PID) },
|
||||
|
Reference in New Issue
Block a user