diff options
author | Bhumika Goyal | 2017-08-26 15:11:30 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2017-08-27 14:45:32 +0200 |
commit | 868449422081f8f4b5d2969709c0aa9021184167 (patch) | |
tree | b3177a39b4ad6cd62ee4c8106907778943d5e63e /drivers/media/usb/pvrusb2 | |
parent | media: pci: make video_device const (diff) | |
download | kernel-qcow2-linux-868449422081f8f4b5d2969709c0aa9021184167.tar.gz kernel-qcow2-linux-868449422081f8f4b5d2969709c0aa9021184167.tar.xz kernel-qcow2-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/pvrusb2')
-rw-r--r-- | drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c index 8f13c60198ed..4320bda9352d 100644 --- a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c @@ -1226,7 +1226,7 @@ static const struct v4l2_file_operations vdev_fops = { }; -static struct video_device vdev_template = { +static const struct video_device vdev_template = { .fops = &vdev_fops, }; |