summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/fsl-viu.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-22 08:56:35 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 14:30:25 -0400
commitbd9f8f750e238f8a6160fb053ae97016f6da1098 (patch)
tree973e13fa7a1b36b759ebeadd1a474ac9e3716046 /drivers/media/platform/fsl-viu.c
parent960c15dd171cf9f7172ecb785673b8265c567a53 (diff)
downloadlinux-bd9f8f750e238f8a6160fb053ae97016f6da1098.tar.gz
linux-bd9f8f750e238f8a6160fb053ae97016f6da1098.tar.bz2
linux-bd9f8f750e238f8a6160fb053ae97016f6da1098.zip
media: platform: constify videobuf_queue_ops structures
videobuf_queue_ops are not supposed to change at runtime. All functions working with videobuf_queue_ops provided by <media/videobuf-core.h> work with const videobuf_queue_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/fsl-viu.c')
-rw-r--r--drivers/media/platform/fsl-viu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c
index f7b88e58d00e..2e06dd564442 100644
--- a/drivers/media/platform/fsl-viu.c
+++ b/drivers/media/platform/fsl-viu.c
@@ -549,7 +549,7 @@ static void buffer_release(struct videobuf_queue *vq,
free_buffer(vq, buf);
}
-static struct videobuf_queue_ops viu_video_qops = {
+static const struct videobuf_queue_ops viu_video_qops = {
.buf_setup = buffer_setup,
.buf_prepare = buffer_prepare,
.buf_queue = buffer_queue,