linux_dsm_epyc7002/drivers/gpu/drm/exynos
Bhumika Goyal fc36ec76f3 drm/exynos: constify exynos_drm_crtc_ops structures
Declare exynos_drm_crtc_ops structures as const as they are only passed
as an argument to the function exynos_drm_crtc_create. This argument is
of type const struct exynos_drm_crtc_ops *, so exynos_drm_crtc_ops
structures having this property can be declared const.
Done using Coccinelle:

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

@ok@
position p;
identifier r.i;
@@
exynos_drm_crtc_create(...,&i@p,...)

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

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
+const
struct exynos_drm_crtc_ops i;

File size before:
   text	   data	    bss	    dec	    hex	filename
   5008	    280	      0	   5288	   14a8	exynos/exynos5433_drm_decon.o

File size after:
   text	   data	    bss	    dec	    hex	filename
   5120	    176	      0	   5296	   14b0 exynos/exynos5433_drm_decon.o

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1483984493-25284-1-git-send-email-bhumirks@gmail.com
2017-01-10 11:18:16 +01:00
..
exynos7_drm_decon.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
exynos5433_drm_decon.c drm/exynos: constify exynos_drm_crtc_ops structures 2017-01-10 11:18:16 +01:00
exynos_dp.c drm: bridge: Link encoder and bridge in core code 2016-12-18 16:31:45 +05:30
exynos_drm_core.c
exynos_drm_crtc.c
exynos_drm_crtc.h
exynos_drm_dpi.c
exynos_drm_drv.c drm: Change the return type of the unload hook to void 2017-01-09 11:25:22 +01:00
exynos_drm_drv.h drm: Don't force all planes to be added to the state due to zpos 2016-10-26 18:48:05 +02:00
exynos_drm_dsi.c drm: bridge: Link encoder and bridge in core code 2016-12-18 16:31:45 +05:30
exynos_drm_fb.c drm: Pass 'dev' to drm_helper_mode_fill_fb_struct() 2016-12-15 14:03:30 +02:00
exynos_drm_fb.h
exynos_drm_fbdev.c drm: Nuke fb->bits_per_pixel 2016-12-15 14:55:34 +02:00
exynos_drm_fbdev.h
exynos_drm_fimc.c drm/exynos: gsc: fix spelling mistakes 2016-12-05 22:08:58 +09:00
exynos_drm_fimc.h
exynos_drm_fimd.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
exynos_drm_g2d.c mm: replace get_vaddr_frames() write/force parameters with gup_flags 2016-10-19 08:11:24 -07:00
exynos_drm_g2d.h
exynos_drm_gem.c mm: use vmf->address instead of of vmf->virtual_address 2016-12-14 16:04:09 -08:00
exynos_drm_gem.h
exynos_drm_gsc.c drm/exynos: gsc: fix spelling mistakes 2016-12-05 22:08:58 +09:00
exynos_drm_gsc.h
exynos_drm_iommu.c
exynos_drm_iommu.h
exynos_drm_ipp.c
exynos_drm_ipp.h
exynos_drm_mic.c
exynos_drm_plane.c
exynos_drm_plane.h
exynos_drm_rotator.c
exynos_drm_rotator.h
exynos_drm_vidi.c
exynos_drm_vidi.h
exynos_hdmi.c drm/exynos/hdmi: refactor infoframe code 2016-12-05 22:08:58 +09:00
exynos_mixer.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
Kconfig drm/exynos: Use VIDEO_SAMSUNG_EXYNOS_GSC=n as GSC Kconfig dependency 2016-12-05 22:08:59 +09:00
Makefile
regs-fimc.h
regs-gsc.h
regs-hdmi.h drm/exynos/hdmi: refactor infoframe code 2016-12-05 22:08:58 +09:00
regs-mixer.h
regs-rotator.h
regs-vp.h