linux_dsm_epyc7002/drivers/gpu/drm/sun4i
Bhumika Goyal 32b4d5756c drm/sun4i: make drm_connector_funcs structures const
Make these const as they are only passed to the function
drm_connector_init and the corresponding argument is of type const.
Done using Coccinelle

@match disable optional_qualifier@
identifier s;
@@
static struct drm_connector_funcs s = {...};

@ref@
position p;
identifier match.s;
@@
s@p

@good1@
identifier match.s;
expression e1,e2;
position ref.p;
@@
drm_connector_init(e1,e2,&s@p,...)

@bad depends on  !good1@
position ref.p;
identifier match.s;
@@
s@p

@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct drm_connector_funcs s;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1502191712-11231-3-git-send-email-bhumirks@gmail.com
2017-08-09 18:37:17 +02:00
..
Kconfig
Makefile
sun4i_backend.c
sun4i_backend.h
sun4i_crtc.c
sun4i_crtc.h
sun4i_dotclock.c
sun4i_dotclock.h
sun4i_drv.c drm/sun4i: Use .dumb_map_offset and .dumb_destroy defaults 2017-07-29 13:58:12 +02:00
sun4i_drv.h
sun4i_framebuffer.c
sun4i_framebuffer.h
sun4i_hdmi_ddc_clk.c
sun4i_hdmi_enc.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
sun4i_hdmi_tmds_clk.c
sun4i_hdmi.h
sun4i_layer.c drm: Plumb modifiers through plane init 2017-08-01 17:50:06 +01:00
sun4i_layer.h
sun4i_rgb.c drm/sun4i: make drm_connector_funcs structures const 2017-08-09 18:37:17 +02:00
sun4i_rgb.h
sun4i_tcon.c
sun4i_tcon.h
sun4i_tv.c drm/sun4i: make drm_connector_funcs structures const 2017-08-09 18:37:17 +02:00
sun6i_drc.c
sun8i_layer.c drm: Plumb modifiers through plane init 2017-08-01 17:50:06 +01:00
sun8i_layer.h
sun8i_mixer.c
sun8i_mixer.h
sunxi_engine.h