summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/msi2500
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-26 15:11:30 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-27 14:45:32 +0200
commit868449422081f8f4b5d2969709c0aa9021184167 (patch)
treeb3177a39b4ad6cd62ee4c8106907778943d5e63e /drivers/media/usb/msi2500
parentmedia: pci: make video_device const (diff)
downloadlinux-868449422081f8f4b5d2969709c0aa9021184167.tar.xz
linux-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/msi2500')
-rw-r--r--drivers/media/usb/msi2500/msi2500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/msi2500/msi2500.c b/drivers/media/usb/msi2500/msi2500.c
index 79bfd2dbe649..a097d3dbc141 100644
--- a/drivers/media/usb/msi2500/msi2500.c
+++ b/drivers/media/usb/msi2500/msi2500.c
@@ -1143,7 +1143,7 @@ static const struct v4l2_file_operations msi2500_fops = {
.unlocked_ioctl = video_ioctl2,
};
-static struct video_device msi2500_template = {
+static const struct video_device msi2500_template = {
.name = "Mirics MSi3101 SDR Dongle",
.release = video_device_release_empty,
.fops = &msi2500_fops,