linux_dsm_epyc7002/drivers/media/platform
Julia Lawall 5003a83139 media: vcodec: mediatek: 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>
Acked-by: Rick Chang <rick.chang@mediatek.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-08-20 08:03:55 -04:00
..
am437x [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
atmel media: atmel-isc: constify vb2_ops structure 2017-07-19 15:08:07 -04:00
blackfin media: blackfin: bfin_capture: constify vb2_ops structures 2017-08-20 08:03:33 -04:00
coda media: coda: reduce iram size to leave space for suspend to ram 2017-08-08 07:02:28 -04:00
davinci media: davinci: vpbe: constify vb2_ops structures 2017-08-20 08:03:27 -04:00
exynos4-is media: exynos4-is: fimc-is-i2c: constify dev_pm_ops structures 2017-07-26 08:37:57 -04:00
exynos-gsc [media] v4l2-ioctl/exynos: fix G/S_SELECTION's type handling 2017-06-23 09:20:42 -03:00
marvell-ccic media: marvell-ccic: constify pci_device_id 2017-08-09 09:43:15 -04:00
meson media: platform: Add Amlogic Meson AO CEC Controller driver 2017-08-09 10:45:26 -04:00
mtk-jpeg media: vcodec: mediatek: constify v4l2_m2m_ops structures 2017-08-20 08:03:55 -04:00
mtk-mdp media: mtk-mdp: constify vb2_ops structure 2017-07-19 15:10:39 -04:00
mtk-vcodec media: mtk-vcodec: fix vp9 decode error 2017-08-08 06:26:48 -04:00
mtk-vpu IOMMU Updates for Linux v4.12 2017-05-09 15:15:47 -07:00
omap media: v4l: omap_vout: vrfb: initialize DMA flags 2017-08-08 06:35:10 -04:00
omap3isp media: v4l: omap3isp: Get the parallel bus type from DT 2017-07-26 08:41:33 -04:00
qcom/venus media: venus: don't abuse dma_alloc for non-DMA allocations 2017-07-20 15:55:14 -04:00
rcar-vin [media] rcar-vin: fix bug in pixelformat selection 2017-06-06 16:45:49 -03:00
s3c-camif media: s3c-camif: don't set driver_version 2017-08-08 06:00:26 -04:00
s5p-cec [media] s5p_cec: set the CEC_CAP_NEEDS_HPD flag if needed 2017-06-20 06:56:31 -03:00
s5p-g2d media: s5p-g2d: constify v4l2_m2m_ops structures 2017-08-20 08:03:47 -04:00
s5p-jpeg media: s5p-jpeg: directly use parsed subsampling on exynos5433 2017-08-20 08:02:21 -04:00
s5p-mfc [media] s5p-mfc: fix spelling mistake: "destionation" -> "destination" 2017-06-13 14:01:10 -03:00
soc_camera media: v4l: use WARN_ON(1) instead of __WARN() 2017-08-08 06:34:36 -04:00
sti media: st-delta: constify v4l2_m2m_ops structures 2017-08-20 08:03:39 -04:00
stm32 media: stm32-dcmi: explicitly request exclusive reset control 2017-08-08 06:27:06 -04:00
ti-vpe media: ti-vpe: vpe: constify v4l2_m2m_ops structures 2017-08-20 08:03:44 -04:00
vimc media: vimc: set id_table for platform drivers 2017-07-17 11:26:56 -03:00
vivid media: adv*/vivid/pulse8/rainshadow: cec: use CEC_CAP_DEFAULTS 2017-08-09 09:37:46 -04:00
vsp1 v4l: vsp1: Add API to map and unmap DRM buffers through the VSP 2017-06-09 12:25:38 +01:00
xilinx [media] v4l: Switch from V4L2 OF not V4L2 fwnode API 2017-06-06 09:58:16 -03:00
arv.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
fsl-viu.c media: media/platform: add const to v4l2_file_operations structures 2017-07-19 14:56:19 -04:00
Kconfig media: platform: Add Amlogic Meson AO CEC Controller driver 2017-08-09 10:45:26 -04:00
m2m-deinterlace.c [media] m2m-deinterlace: don't return zero on failure paths in deinterlace_probe() 2017-04-10 14:43:31 -03:00
Makefile media: platform: Add Amlogic Meson AO CEC Controller driver 2017-08-09 10:45:26 -04:00
mx2_emmaprp.c [media] platform: don't break long lines 2016-10-21 10:06:32 -02:00
pxa_camera.c media: v4l: use WARN_ON(1) instead of __WARN() 2017-08-08 06:34:36 -04:00
rcar_drif.c [media] media: platform: rcar_drif: Add DRIF support 2017-06-20 07:07:37 -03:00
rcar_fdp1.c media: rcar_fdp1: constify vb2_ops structure 2017-07-19 15:03:55 -04:00
rcar_jpu.c media: V4L2: platform: rcar_jpu: constify v4l2_m2m_ops structures 2017-08-20 08:03:51 -04:00
rcar-fcp.c v4l: rcar-fcp: Add an API to retrieve the FCP device 2017-06-09 12:25:36 +01:00
sh_veu.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
sh_vou.c [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
via-camera.c [media] platform: don't break long lines 2016-10-21 10:06:32 -02:00
via-camera.h
video-mux.c media: platform: video-mux: convert to multiplexer framework 2017-07-20 06:59:25 -04:00
vim2m.c [media] vim2m: Clean up file handle in open() error path 2017-01-31 07:44:26 -02:00