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


Groups > linux.kernel > #1482054 > unrolled thread

[PATCH 1/2] [media] tw5864: constify vb2_ops structure

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 1/2] [media] tw5864: constify vb2_ops structure Andrey Utkin <andrey.utkin@corp.bluecherry.net> - 2016-09-13 01:10 +0200

#1482054 — [PATCH 1/2] [media] tw5864: constify vb2_ops structure

FromAndrey Utkin <andrey.utkin@corp.bluecherry.net>
Date2016-09-13 01:10 +0200
Subject[PATCH 1/2] [media] tw5864: constify vb2_ops structure
Message-ID<sgIwq-1K1-13@gated-at.bofh.it>
Inspired by "[media] pci: constify vb2_ops structures" patch
from Julia Lawall (dated 9 Sep 2016).

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 6c1685a..7401b64 100644
--- a/drivers/media/pci/tw5864/tw5864-video.c
+++ b/drivers/media/pci/tw5864/tw5864-video.c
@@ -465,7 +465,7 @@ static void tw5864_stop_streaming(struct vb2_queue *q)
 	spin_unlock_irqrestore(&input->slock, flags);
 }
 
-static struct vb2_ops tw5864_video_qops = {
+static const struct vb2_ops tw5864_video_qops = {
 	.queue_setup = tw5864_queue_setup,
 	.buf_queue = tw5864_buf_queue,
 	.start_streaming = tw5864_start_streaming,
-- 
2.9.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web