diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-26 09:13:46 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-27 15:46:05 +0300 |
commit | fe9619a7b583b5d5d9d7fc64c83e498e8f814696 (patch) | |
tree | 59ffb0a538eea78093f454ced037e48c9a0adfd9 /drivers/media/usb/usbtv | |
parent | e66fb184e749d70358df0e849e5f6ca2b5dabfc9 (diff) | |
download | linux-fe9619a7b583b5d5d9d7fc64c83e498e8f814696.tar.xz |
media: usbtv: make v4l2_file_operations const
Make this const as it is only stored in a const field of a
video_device structure.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/usbtv')
-rw-r--r-- | drivers/media/usb/usbtv/usbtv-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c index 8135614f395a..95b5f4319ec2 100644 --- a/drivers/media/usb/usbtv/usbtv-video.c +++ b/drivers/media/usb/usbtv/usbtv-video.c @@ -629,7 +629,7 @@ static struct v4l2_ioctl_ops usbtv_ioctl_ops = { .vidioc_streamoff = vb2_ioctl_streamoff, }; -static struct v4l2_file_operations usbtv_fops = { +static const struct v4l2_file_operations usbtv_fops = { .owner = THIS_MODULE, .unlocked_ioctl = video_ioctl2, .mmap = vb2_fop_mmap, |