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:

committed by
Mauro Carvalho Chehab

parent
488e27ad81
commit
ff05c9849a
@@ -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,
|
||||
|
Reference in New Issue
Block a user