summaryrefslogtreecommitdiff
path: root/drivers/media/usb/gspca/gspca.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-06-29 09:55:23 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-20 23:45:25 +0300
commitff05c9849a52d53da6254f80f53c14d9ad2399a4 (patch)
treeb0615399cc601c66047ea156b343f2ab1038b474 /drivers/media/usb/gspca/gspca.c
parent488e27ad81f76a2664fb33c06b6da846605adad2 (diff)
downloadlinux-ff05c9849a52d53da6254f80f53c14d9ad2399a4.tar.xz
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>
Diffstat (limited to 'drivers/media/usb/gspca/gspca.c')
-rw-r--r--drivers/media/usb/gspca/gspca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/gspca/gspca.c b/drivers/media/usb/gspca/gspca.c
index 16bc1dde2c8c..0f141762abf1 100644
--- a/drivers/media/usb/gspca/gspca.c
+++ b/drivers/media/usb/gspca/gspca.c
@@ -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,