From: Bhumika Goyal Date: Thu, 29 Jun 2017 08:59:19 +0000 (-0400) Subject: media: cx23885: add const to v4l2_file_operations structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=568bdaddc324c0068f26bbe3d4dc57acb8e3286b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- 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,