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


Groups > linux.kernel > #1720596

[PATCH 02/11] [media] stkwebcam: make video_device const

From Bhumika Goyal <bhumirks@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 02/11] [media] stkwebcam: make video_device const
Date 2017-08-26 10:40 +0200
Message-ID <uiENk-7kK-29@gated-at.bofh.it> (permalink)
References <uiENj-7kK-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Make this const as it is only used in a copy operation.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/stkwebcam/stk-webcam.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/stkwebcam/stk-webcam.c b/drivers/media/usb/stkwebcam/stk-webcam.c
index 39abb58..c0bba77 100644
--- a/drivers/media/usb/stkwebcam/stk-webcam.c
+++ b/drivers/media/usb/stkwebcam/stk-webcam.c
@@ -1244,7 +1244,7 @@ static void stk_v4l_dev_release(struct video_device *vd)
 	kfree(dev);
 }
 
-static struct video_device stk_v4l_data = {
+static const struct video_device stk_v4l_data = {
 	.name = "stkwebcam",
 	.fops = &v4l_stk_fops,
 	.ioctl_ops = &v4l_stk_ioctl_ops,
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 00/11] [media]: make video_device const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-26 10:40 +0200
  [PATCH 02/11] [media] stkwebcam:  make video_device const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-26 10:40 +0200

csiph-web