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


Groups > linux.kernel > #1482053 > unrolled thread

[PATCH 2/2] [media] tw5864: constify struct video_device template

Started byAndrey Utkin <andrey.utkin@corp.bluecherry.net>
First post2016-09-13 01:10 +0200
Last post2016-09-13 01:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] [media] tw5864: constify struct video_device template Andrey Utkin <andrey.utkin@corp.bluecherry.net> - 2016-09-13 01:10 +0200

#1482053 — [PATCH 2/2] [media] tw5864: constify struct video_device template

FromAndrey Utkin <andrey.utkin@corp.bluecherry.net>
Date2016-09-13 01:10 +0200
Subject[PATCH 2/2] [media] tw5864: constify struct video_device template
Message-ID<sgIwq-1K1-7@gated-at.bofh.it>
tw5864_video_template is used for filling of actual video_device
structures. It is copied by value, and is not used for anything else.

Signed-off-by: Andrey Utkin <andrey.utkin@corp.bluecherry.net>
---
 drivers/media/pci/tw5864/tw5864-video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/pci/tw5864/tw5864-video.c b/drivers/media/pci/tw5864/tw5864-video.c
index 7401b64..652a059 100644
--- a/drivers/media/pci/tw5864/tw5864-video.c
+++ b/drivers/media/pci/tw5864/tw5864-video.c
@@ -912,7 +912,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = {
 #endif
 };
 
-static struct video_device tw5864_video_template = {
+static const struct video_device tw5864_video_template = {
 	.name = "tw5864_video",
 	.fops = &video_fops,
 	.ioctl_ops = &video_ioctl_ops,
-- 
2.9.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web