linux/drivers/media/platform/sti
Julia Lawall fdd488dffd media: bdisp: 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:04:04 -04:00
..
bdisp media: bdisp: constify v4l2_m2m_ops structures 2017-08-20 08:04:04 -04:00
c8sectpfe [media] c8sectpfe: use setup_timer 2017-04-10 14:56:17 -03:00
cec [media] stih-cec/vivid/pulse8/rainshadow: use cec_transmit_attempt_done 2017-06-20 06:53:20 -03:00
delta media: st-delta: constify v4l2_m2m_ops structures 2017-08-20 08:03:39 -04:00
hva [media] st-hva: hva_dbg_summary() should be static 2017-01-31 12:02:33 -02:00