summaryrefslogtreecommitdiff
path: root/drivers/media/usb/cpia2
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-26 16:11:30 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-27 15:45:32 +0300
commit868449422081f8f4b5d2969709c0aa9021184167 (patch)
treeb3177a39b4ad6cd62ee4c8106907778943d5e63e /drivers/media/usb/cpia2
parent507e190946297c34a27d9366b0661d5e506fdd03 (diff)
downloadlinux-868449422081f8f4b5d2969709c0aa9021184167.tar.xz
media: usb: make video_device const
Make these const as they are only used during a copy operation. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Acked-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/cpia2')
-rw-r--r--drivers/media/usb/cpia2/cpia2_v4l.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/cpia2/cpia2_v4l.c b/drivers/media/usb/cpia2/cpia2_v4l.c
index 7122023e7004..3dedd83f0b19 100644
--- a/drivers/media/usb/cpia2/cpia2_v4l.c
+++ b/drivers/media/usb/cpia2/cpia2_v4l.c
@@ -1075,7 +1075,7 @@ static const struct v4l2_file_operations cpia2_fops = {
.mmap = cpia2_mmap,
};
-static struct video_device cpia2_template = {
+static const struct video_device cpia2_template = {
/* I could not find any place for the old .initialize initializer?? */
.name = "CPiA2 Camera",
.fops = &cpia2_fops,