Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1720541 > unrolled thread

[PATCH] [media] usbtv: make v4l2_file_operations const

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-08-26 08:20 +0200
Last post2017-08-26 08:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] [media] usbtv: make v4l2_file_operations const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-26 08:20 +0200

#1720541 — [PATCH] [media] usbtv: make v4l2_file_operations const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-26 08:20 +0200
Subject[PATCH] [media] usbtv: make v4l2_file_operations const
Message-ID<uiCBP-64P-7@gated-at.bofh.it>
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>
---
 drivers/media/usb/usbtv/usbtv-video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/usbtv/usbtv-video.c b/drivers/media/usb/usbtv/usbtv-video.c
index 8135614..95b5f43 100644
--- a/drivers/media/usb/usbtv/usbtv-video.c
+++ b/drivers/media/usb/usbtv/usbtv-video.c
@@ -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,
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web