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:

committad av
Mauro Carvalho Chehab

förälder
a3b215ea60
incheckning
7fb2e072d4
@@ -142,7 +142,7 @@ static void usbtv_disconnect(struct usb_interface *intf)
|
||||
v4l2_device_put(&usbtv->v4l2_dev);
|
||||
}
|
||||
|
||||
static struct usb_device_id usbtv_id_table[] = {
|
||||
static const struct usb_device_id usbtv_id_table[] = {
|
||||
{ USB_DEVICE(0x1b71, 0x3002) },
|
||||
{}
|
||||
};
|
||||
|
Referens i nytt ärende
Block a user