aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-mem2mem.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2012-09-11 05:32:17 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-19 10:35:18 -0500
commitb1252eb83fe57b838c19e2c65cba685c93696693 (patch)
treea2b4bf064f85a8b11438944fabe541016be6a604 /include/media/v4l2-mem2mem.h
parent7b2607c99e36854987df2f78eb540cd712490450 (diff)
[media] media: mem2mem: make reference to struct m2m_ops in the core const
The mem2mem core doesn't change struct m2m_ops, provided by the driver, make references to it const. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/v4l2-mem2mem.h')
-rw-r--r--include/media/v4l2-mem2mem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/v4l2-mem2mem.h b/include/media/v4l2-mem2mem.h
index 7e82d2b193d5..d3eef01da648 100644
--- a/include/media/v4l2-mem2mem.h
+++ b/include/media/v4l2-mem2mem.h
@@ -125,7 +125,7 @@ unsigned int v4l2_m2m_poll(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
125int v4l2_m2m_mmap(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 125int v4l2_m2m_mmap(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
126 struct vm_area_struct *vma); 126 struct vm_area_struct *vma);
127 127
128struct v4l2_m2m_dev *v4l2_m2m_init(struct v4l2_m2m_ops *m2m_ops); 128struct v4l2_m2m_dev *v4l2_m2m_init(const struct v4l2_m2m_ops *m2m_ops);
129void v4l2_m2m_release(struct v4l2_m2m_dev *m2m_dev); 129void v4l2_m2m_release(struct v4l2_m2m_dev *m2m_dev);
130 130
131struct v4l2_m2m_ctx *v4l2_m2m_ctx_init(struct v4l2_m2m_dev *m2m_dev, 131struct v4l2_m2m_ctx *v4l2_m2m_ctx_init(struct v4l2_m2m_dev *m2m_dev,