Skip to contentSkip to conversation

usbtv: make v4l2_file_operations const

PATCH New Bhumika Goyal 1 participant 1 message Aug 26, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/media/usb/usbtv/usbtv-video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/usb/usbtv/usbtv-video.c +1 -1
index 8135614..95b5f43 100644
@@ -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