linux_dsm_epyc7002/drivers/media/platform/sti
Gustavo A. R. Silva 9c91e70605 media: st-delta: constify vb2_ops structures
Check for vb2_ops structures that are only stored in the ops field of a
vb2_queue structure. That field is declared const, so vb2_ops structures
that have this property can be declared as const also.

This issue was detected using Coccinelle and the following semantic patch:

@r disable optional_qualifier@
identifier i;
position p;
@@
static struct vb2_ops i@p = { ... };

@ok@
identifier r.i;
struct vb2_queue e;
position p;
@@
e.ops = &i@p;

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

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct vb2_ops i = { ... };

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-07-19 15:03:22 -04:00
..
bdisp media: bdisp-debug: Replace a seq_puts() call by seq_putc() in seven functions 2017-06-24 09:34:08 -03: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 vb2_ops structures 2017-07-19 15:03:22 -04:00
hva [media] st-hva: hva_dbg_summary() should be static 2017-01-31 12:02:33 -02:00