staging: bcm2835-camera: make video_device const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 26 Aug 2017 11:30:36 +0000 (17:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 08:40:39 +0000 (10:40 +0200)
Make this const as it is only used in a copy operation.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c

index 5af758a19ed6db15942884a64c9b89977124c986..be936b8fe317599b132988f0a700ec7f7df15af6 100644 (file)
@@ -1456,7 +1456,7 @@ static const struct v4l2_file_operations camera0_fops = {
        .mmap = vb2_fop_mmap,
 };
 
-static struct video_device vdev_template = {
+static const struct video_device vdev_template = {
        .name = "camera0",
        .fops = &camera0_fops,
        .ioctl_ops = &camera0_ioctl_ops,