linux_dsm_epyc7002/drivers/media/platform
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
..
am437x
atmel
blackfin media: media/platform: add const to v4l2_file_operations structures 2017-07-19 14:56:19 -04:00
coda media: coda: rename the picture run timeout error handler 2017-06-24 09:39:29 -03:00
davinci media: media/platform: add const to v4l2_file_operations structures 2017-07-19 14:56:19 -04:00
exynos4-is [media] v4l2-ioctl/exynos: fix G/S_SELECTION's type handling 2017-06-23 09:20:42 -03:00
exynos-gsc [media] v4l2-ioctl/exynos: fix G/S_SELECTION's type handling 2017-06-23 09:20:42 -03:00
marvell-ccic
mtk-jpeg
mtk-mdp
mtk-vcodec
mtk-vpu
omap media: v4l: omap_vout: vrfb: Convert to dmaengine 2017-06-24 16:00:25 -03:00
omap3isp
qcom/venus media: venus: fix loop wrap in cleanup of clks 2017-06-24 09:38:53 -03:00
rcar-vin
s3c-camif
s5p-cec
s5p-g2d
s5p-jpeg
s5p-mfc
soc_camera media: media/platform: add const to v4l2_file_operations structures 2017-07-19 14:56:19 -04:00
sti media: st-delta: constify vb2_ops structures 2017-07-19 15:03:22 -04:00
stm32 media: stm32-dcmi: constify vb2_ops structure 2017-07-19 15:02:50 -04:00
ti-vpe
vimc media: vimc: set id_table for platform drivers 2017-07-17 11:26:56 -03:00
vivid
vsp1
xilinx
arv.c
fsl-viu.c media: media/platform: add const to v4l2_file_operations structures 2017-07-19 14:56:19 -04:00
Kconfig
m2m-deinterlace.c
Makefile
mx2_emmaprp.c
pxa_camera.c
rcar_drif.c
rcar_fdp1.c
rcar_jpu.c
rcar-fcp.c
sh_veu.c
sh_vou.c
via-camera.c
via-camera.h
video-mux.c
vim2m.c