linux/drivers/media/platform
Bhumika Goyal 32dd9e873b [media] media: platform: soc_camera_platform : constify v4l2_subdev_* structures
v4l2_subdev_{core/video}_ops structures are stored in the
fields of the v4l2_subdev_ops structure which are of type const.
Also, v4l2_subdev_ops structure is passed to a function
having its argument of type const. As these structures are never
modified, so declare them as const.
Done using Coccinelle:(One of the scripts)

@r1 disable optional_qualifier @
identifier i;
position p;
@@
static struct v4l2_subdev_core_ops i@p = {...};

@ok1@
identifier r1.i;
position p;
struct v4l2_subdev_ops obj;
@@
obj.core=&i@p;

@bad@
position p!={r1.p,ok1.p};
identifier r1.i;
@@
i@p

@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct v4l2_subdev_core_ops i;

File size before:
    text   data	    bss	    dec	    hex	filename
    858	    576	      0	   1434	    59a soc_camera/soc_camera_platform.o

File size after:
  text	   data	    bss	    dec	    hex	filename
   1234	    192	      0	   1426	    592 soc_camera/soc_camera_platform.o

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-01-30 14:47:21 -02:00
..
am437x [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
atmel [media] atmel-isc: fix error return code in atmel_isc_probe() 2016-11-22 05:40:52 -02:00
blackfin [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
coda [media] coda: fix the error path in coda_probe() 2016-10-24 18:34:45 -02:00
davinci [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
exynos4-is [media] media: Rename graph and pipeline structs and functions 2017-01-27 16:13:24 -02:00
exynos-gsc [media] exynos-gsc: Add support for Exynos5433 specific version 2016-11-16 16:37:24 -02:00
marvell-ccic [media] marvell-ccic: don't break long lines 2016-10-21 09:30:46 -02:00
mtk-mdp [media] mtk-mdp: allocate video_device dynamically 2016-11-22 05:42:29 -02:00
mtk-vcodec [media] mtk-vcodec: add index check in decoder vidioc_qbuf 2016-11-16 15:27:43 -02:00
mtk-vpu [media] VPU: mediatek: Fix return value in case of error 2016-10-24 18:11:57 -02:00
omap Linux 4.9-rc5 2016-11-16 16:42:27 -02:00
omap3isp [media] omap3isp: Use a local media device pointer instead 2017-01-30 11:34:38 -02:00
rcar-vin [media] rcar-vin: add R-Car gen2 fallback compatibility string 2016-09-22 12:52:55 -03:00
s3c-camif [media] media: Rename graph and pipeline structs and functions 2017-01-27 16:13:24 -02:00
s5p-g2d [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
s5p-jpeg [media] squash lines for simple wrapper functions 2016-11-16 13:28:40 -02:00
s5p-mfc [media] s5p-mfc: Add support for MFC v8 available in Exynos 5433 SoCs 2016-11-30 09:22:07 -02:00
soc_camera [media] media: platform: soc_camera_platform : constify v4l2_subdev_* structures 2017-01-30 14:47:21 -02:00
sti [media] c8sectpfe: fix error return code in c8sectpfe_probe() 2016-11-21 11:41:43 -02:00
ti-vpe [media] ti-vpe: get rid of some smatch warnings 2016-11-22 09:08:36 -02:00
vivid [media] vivid: Set color_enc on HSV formats 2016-11-29 12:12:32 -02:00
vsp1 [media] media: Rename graph and pipeline structs and functions 2017-01-27 16:13:24 -02:00
xilinx [media] xilinx: Use a local media device pointer instead 2017-01-30 11:35:02 -02:00
arv.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
fsl-viu.c [media] fsl-viu: drop format names 2015-08-11 06:59:09 -03:00
Kconfig [media] v4l: rcar_fdp1: add FCP dependency 2016-11-25 07:47:17 -02:00
m2m-deinterlace.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
Makefile [media] v4l: Add Renesas R-Car FDP1 Driver 2016-11-16 16:21:54 -02:00
mx2_emmaprp.c [media] platform: don't break long lines 2016-10-21 10:06:32 -02:00
pxa_camera.c [media] media: platform: pxa_camera: add missing sensor power on 2016-10-24 18:08:12 -02:00
rcar_fdp1.c [media] v4l: rcar_fdp1: mark PM functions as __maybe_unused 2016-11-25 07:45:27 -02:00
rcar_jpu.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
rcar-fcp.c [media] v4l: rcar-fcp: Fix module autoload for OF registration 2016-11-16 13:17:07 -02: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] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
via-camera.c [media] platform: don't break long lines 2016-10-21 10:06:32 -02:00
via-camera.h
vim2m.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00