usbtv: make v4l2_file_operations const
PATCH 1/1 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 <[email protected]>
--- drivers/media/usb/usbtv/usbtv-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/usbtv/usbtv-video.c +1 -1
@@ -629,7 +629,7 @@ static int usbtv_s_input(struct file *file, void *priv, unsigned int i) .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,
Signature · 1 line
1.9.1