diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-06-29 08:55:23 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-07-20 22:45:25 +0200 |
commit | ff05c9849a52d53da6254f80f53c14d9ad2399a4 (patch) | |
tree | b0615399cc601c66047ea156b343f2ab1038b474 /drivers/media/usb/stkwebcam/stk-webcam.c | |
parent | media: dvb-frontends: mb86a16: remove useless variables in signal_det() (diff) | |
download | linux-ff05c9849a52d53da6254f80f53c14d9ad2399a4.tar.xz linux-ff05c9849a52d53da6254f80f53c14d9ad2399a4.zip |
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/stkwebcam/stk-webcam.c')
-rw-r--r-- | drivers/media/usb/stkwebcam/stk-webcam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/stkwebcam/stk-webcam.c b/drivers/media/usb/stkwebcam/stk-webcam.c index 90d4a08cda31..93330be8cc54 100644 --- a/drivers/media/usb/stkwebcam/stk-webcam.c +++ b/drivers/media/usb/stkwebcam/stk-webcam.c @@ -1202,7 +1202,7 @@ static const struct v4l2_ctrl_ops stk_ctrl_ops = { .s_ctrl = stk_s_ctrl, }; -static struct v4l2_file_operations v4l_stk_fops = { +static const struct v4l2_file_operations v4l_stk_fops = { .owner = THIS_MODULE, .open = v4l_stk_open, .release = v4l_stk_release, |