summaryrefslogtreecommitdiff
path: root/drivers/media/pci/cx23885/cx23885-vbi.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-27 18:59:06 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-27 14:12:44 +0200
commit0e2d9a9d4aa55dc2d650f9c07069a0b149f02d04 (patch)
treef4f149a67cf7b7137b0ddac10a1ab1146219aad4 /drivers/media/pci/cx23885/cx23885-vbi.c
parent9676593c9060d011aa97f7ab3d2d63a1bf1c01df (diff)
downloadlinux-next-0e2d9a9d4aa55dc2d650f9c07069a0b149f02d04.tar.gz
media: cx23885/saa7134: make vb2_ops const
Make vb2_ops const as they are only stored in the const field of a vb2_queue structure. Make the declarations const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/cx23885/cx23885-vbi.c')
-rw-r--r--drivers/media/pci/cx23885/cx23885-vbi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-vbi.c b/drivers/media/pci/cx23885/cx23885-vbi.c
index 369e545cac04..70f9f13bded3 100644
--- a/drivers/media/pci/cx23885/cx23885-vbi.c
+++ b/drivers/media/pci/cx23885/cx23885-vbi.c
@@ -254,7 +254,7 @@ static void cx23885_stop_streaming(struct vb2_queue *q)
}
-struct vb2_ops cx23885_vbi_qops = {
+const struct vb2_ops cx23885_vbi_qops = {
.queue_setup = queue_setup,
.buf_prepare = buffer_prepare,
.buf_finish = buffer_finish,