linux/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 drm/sun4i: Add HDMI support 2017-06-01 09:50:01 +02:00
Makefile drm/sun4i: Add HDMI support 2017-06-01 09:50:01 +02:00
sun4i_backend.c drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00
sun4i_backend.h drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00
sun4i_crtc.c drm: Convert atomic drivers from CRTC .disable() to .atomic_disable() 2017-06-30 14:53:15 +02:00
sun4i_crtc.h drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00
sun4i_dotclock.c drm/sun4i: dotclock: Round to closest clock rate 2016-09-20 09:19:31 +02:00
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 drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00
sun4i_framebuffer.c drm/sun4i: Move drm_mode_config_cleanup call to main driver 2017-03-07 22:15:14 +01:00
sun4i_framebuffer.h
sun4i_hdmi_ddc_clk.c drm/sun4i: Add HDMI support 2017-06-01 09:50:01 +02:00
sun4i_hdmi_enc.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
sun4i_hdmi_tmds_clk.c drm/sun4i: Add HDMI support 2017-06-01 09:50:01 +02:00
sun4i_hdmi.h drm/sun4i: Add HDMI support 2017-06-01 09:50:01 +02:00
sun4i_layer.c drm: Plumb modifiers through plane init 2017-08-01 17:50:06 +01:00
sun4i_layer.h drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00
sun4i_rgb.c drm/sun4i: make drm_connector_funcs structures const 2017-08-09 18:37:17 +02:00
sun4i_rgb.h drm/sun4i: rgb: Pass tcon pointer when initializing RGB encoder 2017-03-07 22:18:24 +01:00
sun4i_tcon.c drm/sun4i: tcon: multiply the vtotal when not in interlace 2017-06-01 09:49:59 +02:00
sun4i_tcon.h drm/sun4i: tcon: Change vertical total size computation inconsistency 2017-06-01 09:49:58 +02:00
sun4i_tv.c drm/sun4i: make drm_connector_funcs structures const 2017-08-09 18:37:17 +02:00
sun6i_drc.c Merge tag 'drm-misc-next-2016-11-16' of git://anongit.freedesktop.org/git/drm-misc into drm-next 2016-11-17 08:02:46 +10:00
sun8i_layer.c drm: Plumb modifiers through plane init 2017-08-01 17:50:06 +01:00
sun8i_layer.h drm/sun4i: add support for Allwinner DE2 mixers 2017-06-01 09:49:54 +02:00
sun8i_mixer.c drm/sun4i: add support for Allwinner DE2 mixers 2017-06-01 09:49:54 +02:00
sun8i_mixer.h drm/sun4i: add support for Allwinner DE2 mixers 2017-06-01 09:49:54 +02:00
sunxi_engine.h drm/sun4i: abstract a engine type 2017-06-01 09:47:23 +02:00