media: : usb: add const to v4l2_file_operations structures

Declare v4l2_file_operations structures as const as they are only stored
in the fops field of video_device structures. 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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Bhumika Goyal
2017-06-29 02:55:23 -04:00
committed by Mauro Carvalho Chehab
parent 488e27ad81
commit ff05c9849a
7 changed files with 7 additions and 7 deletions

View File

@@ -1964,7 +1964,7 @@ out:
return ret;
}
static struct v4l2_file_operations dev_fops = {
static const struct v4l2_file_operations dev_fops = {
.owner = THIS_MODULE,
.open = dev_open,
.release = dev_close,