aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhumika Goyal2017-08-26 17:00:36 +0530
committerGreg Kroah-Hartman2017-08-28 10:40:39 +0200
commitb9920ca3b53728aaa836f138f74ebb37776b9f57 (patch)
treefc9b0d94aabe1ce6226bd98b9dd48a967d285cfb
parentd162f80ab635ce8160a634317c7d1dae8e180d0b (diff)
staging: bcm2835-camera: make video_device const
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>
-rw-r--r--drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
index 5af758a19ed6..be936b8fe317 100644
--- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
+++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
@@ -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,