summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/uvc_v4l2.h
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-27 20:27:07 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-10-19 10:38:09 +0300
commit87e981d51a85005b2793d8745e8671765a5a2b6b (patch)
tree614979a888026331ee10c6686f25687c11e9f1e1 /drivers/usb/gadget/function/uvc_v4l2.h
parentca02a5af650cf3addb004196c2ab713b020445ef (diff)
downloadlinux-87e981d51a85005b2793d8745e8671765a5a2b6b.tar.xz
usb: gadget: f_uvc: make uvc_v4l2_fops const
Make this const as it is only stored in the const field of a structure video_device in the file referencing it. Make the declaration const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/function/uvc_v4l2.h')
-rw-r--r--drivers/usb/gadget/function/uvc_v4l2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/uvc_v4l2.h b/drivers/usb/gadget/function/uvc_v4l2.h
index 2683b92fda65..ad6ca0671740 100644
--- a/drivers/usb/gadget/function/uvc_v4l2.h
+++ b/drivers/usb/gadget/function/uvc_v4l2.h
@@ -17,6 +17,6 @@
#define __UVC_V4L2_H__
extern const struct v4l2_ioctl_ops uvc_v4l2_ioctl_ops;
-extern struct v4l2_file_operations uvc_v4l2_fops;
+extern const struct v4l2_file_operations uvc_v4l2_fops;
#endif /* __UVC_V4L2_H__ */