summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/as102
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-13 04:54:43 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 08:04:51 -0400
commit7fb2e072d41b1da5ddf29a1ba62f0e380d94a855 (patch)
tree9d1796e292fbcde8a61bd5f1df02bfc76ccaf703 /drivers/media/usb/as102
parenta3b215ea6000c108133784702e24d0b79d4d7a01 (diff)
downloadlinux-7fb2e072d41b1da5ddf29a1ba62f0e380d94a855.tar.gz
linux-7fb2e072d41b1da5ddf29a1ba62f0e380d94a855.tar.bz2
linux-7fb2e072d41b1da5ddf29a1ba62f0e380d94a855.zip
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>
Diffstat (limited to 'drivers/media/usb/as102')
-rw-r--r--drivers/media/usb/as102/as102_usb_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/as102/as102_usb_drv.c b/drivers/media/usb/as102/as102_usb_drv.c
index 68c3a80ce349..ea57859aee77 100644
--- a/drivers/media/usb/as102/as102_usb_drv.c
+++ b/drivers/media/usb/as102/as102_usb_drv.c
@@ -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) },