summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/b2c2
diff options
context:
space:
mode:
authorArvind Yadav2017-08-13 10:54:43 +0200
committerMauro Carvalho Chehab2017-08-20 14:04:51 +0200
commit7fb2e072d41b1da5ddf29a1ba62f0e380d94a855 (patch)
tree9d1796e292fbcde8a61bd5f1df02bfc76ccaf703 /drivers/media/usb/b2c2
parentmedia: exynos4-is: constify video_subdev structures (diff)
downloadkernel-qcow2-linux-7fb2e072d41b1da5ddf29a1ba62f0e380d94a855.tar.gz
kernel-qcow2-linux-7fb2e072d41b1da5ddf29a1ba62f0e380d94a855.tar.xz
kernel-qcow2-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/b2c2')
-rw-r--r--drivers/media/usb/b2c2/flexcop-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/b2c2/flexcop-usb.c b/drivers/media/usb/b2c2/flexcop-usb.c
index 788c73803138..a8f3169e30b3 100644
--- a/drivers/media/usb/b2c2/flexcop-usb.c
+++ b/drivers/media/usb/b2c2/flexcop-usb.c
@@ -596,7 +596,7 @@ static void flexcop_usb_disconnect(struct usb_interface *intf)
info("%s successfully deinitialized and disconnected.", DRIVER_NAME);
}
-static struct usb_device_id flexcop_usb_table [] = {
+static const struct usb_device_id flexcop_usb_table[] = {
{ USB_DEVICE(0x0af7, 0x0101) },
{ }
};