summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-06-29 04:59:19 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-19 14:56:41 -0400
commit568bdaddc324c0068f26bbe3d4dc57acb8e3286b (patch)
tree984367b93e28941ea6bae8823cf73f9692bddec2
parent6bcc051691186188256ebde07e0777cebcaeda22 (diff)
downloadlinux-568bdaddc324c0068f26bbe3d4dc57acb8e3286b.tar.gz
linux-568bdaddc324c0068f26bbe3d4dc57acb8e3286b.tar.bz2
linux-568bdaddc324c0068f26bbe3d4dc57acb8e3286b.zip
media: cx23885: add const to v4l2_file_operations structure
Declare v4l2_file_operations structure as const as it is only stored in the fops field of video_device structure. This field is of type const, so declare v4l2_file_operations structures with similar properties as const. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/media/pci/cx23885/cx23885-417.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-417.c b/drivers/media/pci/cx23885/cx23885-417.c
index 2ff1d1e274be..a71f3c7569ce 100644
--- a/drivers/media/pci/cx23885/cx23885-417.c
+++ b/drivers/media/pci/cx23885/cx23885-417.c
@@ -1416,7 +1416,7 @@ static int vidioc_log_status(struct file *file, void *priv)
return 0;
}
-static struct v4l2_file_operations mpeg_fops = {
+static const struct v4l2_file_operations mpeg_fops = {
.owner = THIS_MODULE,
.open = v4l2_fh_open,
.release = vb2_fop_release,