linux-stable/drivers/media/platform/sti/delta
Julia Lawall 8751ac288e media: st-delta: 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:39 -04:00
..
delta-cfg.h [media] st-delta: add mjpeg support 2017-02-08 10:06:16 -02:00
delta-debug.c [media] st-delta: debug: trace stream/frame information & summary 2017-02-08 10:07:29 -02:00
delta-debug.h [media] st-delta: debug: trace stream/frame information & summary 2017-02-08 10:07:29 -02:00
delta-ipc.c [media] st-delta: rpmsg ipc support 2017-02-08 10:03:49 -02:00
delta-ipc.h [media] st-delta: rpmsg ipc support 2017-02-08 10:03:49 -02:00
delta-mem.c
delta-mem.h
delta-mjpeg-dec.c [media] st-delta: mjpeg: fix static checker warning 2017-04-05 15:04:06 -03:00
delta-mjpeg-fw.h [media] st-delta: add mjpeg support 2017-02-08 10:06:16 -02:00
delta-mjpeg-hdr.c [media] st-delta: add mjpeg support 2017-02-08 10:06:16 -02:00
delta-mjpeg.h [media] st-delta: add mjpeg support 2017-02-08 10:06:16 -02:00
delta-v4l2.c media: st-delta: constify v4l2_m2m_ops structures 2017-08-20 08:03:39 -04:00
delta.h [media] st-delta: EOS (End Of Stream) support 2017-02-08 10:04:28 -02:00
Makefile [media] st-delta: debug: trace stream/frame information & summary 2017-02-08 10:07:29 -02:00