linux/drivers/media/platform/ti-vpe
Julia Lawall 42f310d385 media: ti-vpe: vpe: constify v4l2_m2m_ops structures
The v4l2_m2m_ops structures are only passed as the only
argument to v4l2_m2m_init, which is declared as const.
Thus the v4l2_m2m_ops structures themselves can be const.

Done with the help of Coccinelle.

// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct v4l2_m2m_ops i@p = { ... };

@ok1@
identifier r.i;
position p;
@@
v4l2_m2m_init(&i@p)

@bad@
position p != {r.p,ok1.p};
identifier r.i;
struct v4l2_m2m_ops e;
@@
e@i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct v4l2_m2m_ops i = { ... };
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-08-20 08:03:44 -04:00
..
cal_regs.h [media] media: ti-vpe: Add CAL v4l2 camera capture driver 2016-02-01 08:45:26 -02:00
cal.c media: ti-vpe: cal: use of_graph_get_remote_endpoint() 2017-08-08 06:33:43 -04:00
csc.c [media] media: ti-vpe: csc: Add debug support for multi-instance 2016-11-22 08:12:24 -02:00
csc.h [media] media: ti-vpe: Make colorspace converter library into its own module 2016-11-22 08:11:25 -02:00
Makefile [media] media: ti-vpe: Make colorspace converter library into its own module 2016-11-22 08:11:25 -02:00
sc_coeff.h
sc.c [media] media: ti-vpe: scaler: Add debug support for multi-instance 2016-11-22 08:09:33 -02:00
sc.h [media] media: ti-vpe: vpe: Make sure frame size dont exceed scaler capacity 2016-11-22 08:10:14 -02:00
vpdma_priv.h [media] media: ti-vpe: vpdma: RGB data type yield inverted data 2016-11-22 08:05:59 -02:00
vpdma.c [media] media: ti-vpe: vpdma: add support for user specified stride 2017-03-03 14:42:42 -03:00
vpdma.h [media] media: ti-vpe: vpdma: add support for user specified stride 2017-03-03 14:42:42 -03:00
vpe_regs.h [media] v4l: ti-vpe: create a color space converter block library 2014-01-07 06:56:18 -02:00
vpe.c media: ti-vpe: vpe: constify v4l2_m2m_ops structures 2017-08-20 08:03:44 -04:00