OSDN Git Service

usb: gadget: f_uvc: make uvc_v4l2_fops const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 27 Sep 2017 17:27:07 +0000 (22:57 +0530)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 19 Oct 2017 07:38:09 +0000 (10:38 +0300)
commit87e981d51a85005b2793d8745e8671765a5a2b6b
tree614979a888026331ee10c6686f25687c11e9f1e1
parentca02a5af650cf3addb004196c2ab713b020445ef
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>
drivers/usb/gadget/function/uvc_v4l2.c
drivers/usb/gadget/function/uvc_v4l2.h