Skip to contentSkip to conversation

staging: bcm2835-camera: make video_device const

PATCH New Bhumika Goyal 1 participant 1 message Aug 26, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: bcm2835-camera: make video_device const

Make this const as it is only used in a copy operation.

---
 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c +1 -1
index 5af758a..be936b8 100644
@@ -1456,7 +1456,7 @@ static int vidioc_s_parm(struct file *file, void *priv,
 	.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,
Signature · 1 line
1.9.1