aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/stk1160
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-26 09:11:30 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-27 08:45:32 -0400
commit868449422081f8f4b5d2969709c0aa9021184167 (patch)
treeb3177a39b4ad6cd62ee4c8106907778943d5e63e /drivers/media/usb/stk1160
parentmedia: pci: make video_device const (diff)
downloadlinux-dev-868449422081f8f4b5d2969709c0aa9021184167.tar.xz
linux-dev-868449422081f8f4b5d2969709c0aa9021184167.zip
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/stk1160')
-rw-r--r--drivers/media/usb/stk1160/stk1160-v4l.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/stk1160/stk1160-v4l.c b/drivers/media/usb/stk1160/stk1160-v4l.c
index a132faa590df..77b759a0bcd9 100644
--- a/drivers/media/usb/stk1160/stk1160-v4l.c
+++ b/drivers/media/usb/stk1160/stk1160-v4l.c
@@ -751,7 +751,7 @@ static const struct vb2_ops stk1160_video_qops = {
.wait_finish = vb2_ops_wait_finish,
};
-static struct video_device v4l_template = {
+static const struct video_device v4l_template = {
.name = "stk1160",
.tvnorms = V4L2_STD_525_60 | V4L2_STD_625_50,
.fops = &stk1160_fops,