linux_dsm_epyc7002/drivers/gpu/drm/arc
Bhumika Goyal a5cb37d800 drm: make drm_mode_config_func const
Make these structures const as they are only stored in the funcs field
of a drm_mode_config structure which is of type const.
Done using Coccinelle:

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

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

@good1@
identifier y;
position ref.p;
identifier match.s;
@@
struct drm_mode_config y = {...,.funcs=&s@p,...};

@good2@
struct drm_mode_config y;
identifier match.s;
position ref.p;
@@
y.funcs = &s@p

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

@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct drm_mode_config_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/1502204751-16525-1-git-send-email-bhumirks@gmail.com
2017-08-09 18:39:34 +02:00
..
arcpgu_crtc.c drm: Plumb modifiers through plane init 2017-08-01 17:50:06 +01:00
arcpgu_drv.c drm: make drm_mode_config_func const 2017-08-09 18:39:34 +02:00
arcpgu_hdmi.c drm: bridge: Link encoder and bridge in core code 2016-12-18 16:31:45 +05:30
arcpgu_regs.h drm: Add support of ARC PGU display controller 2016-04-26 17:58:02 +03:00
arcpgu_sim.c drm: Make the connector .detect() callback optional 2016-12-01 10:05:53 -05:00
arcpgu.h Merge tag 'topic/drm-misc-2016-06-15' of git://anongit.freedesktop.org/drm-intel into drm-next 2016-06-16 05:49:32 +10:00
Kconfig drm/arc: make fbdev support really optional 2016-07-18 09:11:32 +02:00
Makefile drm/arcpgu: Make ARC PGU usable on simulation platforms 2016-06-13 17:45:17 +02:00