[PATCH 1/5] [media] meye: make video_device const

From: Bhumika Goyal
Date: Sat Aug 26 2017 - 07:14:04 EST


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

Signed-off-by: Bhumika Goyal <bhumirks@xxxxxxxxx>
---
drivers/media/pci/meye/meye.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/pci/meye/meye.c b/drivers/media/pci/meye/meye.c
index 0fe76be..49e047e 100644
--- a/drivers/media/pci/meye/meye.c
+++ b/drivers/media/pci/meye/meye.c
@@ -1533,7 +1533,7 @@ static int meye_mmap(struct file *file, struct vm_area_struct *vma)
.vidioc_default = vidioc_default,
};

-static struct video_device meye_template = {
+static const struct video_device meye_template = {
.name = "meye",
.fops = &meye_fops,
.ioctl_ops = &meye_ioctl_ops,
--
1.9.1