linux/drivers/gpu/drm/sti
Ville Syrjälä b0b3b79511 drm: Pass 'name' to drm_universal_plane_init()
Done with coccinelle for the most part. It choked on
msm/mdp/mdp5/mdp5_plane.c like so:
"BAD:!!!!!  enum drm_plane_type type;"
No idea how to deal with that, so I just fixed that up
by hand.

Also it thinks '...' is part of the semantic patch, so I put an
'int DOTDOTDOT' placeholder in its place and got rid of it with
sed afterwards.

I didn't convert drm_plane_init() since passing the varargs through
would mean either cpp macros or va_list, and I figured we don't
care about these legacy functions enough to warrant the extra pain.

@@
typedef uint32_t;
identifier dev, plane, possible_crtcs, funcs, formats, format_count, type;
@@
 int drm_universal_plane_init(struct drm_device *dev,
                              struct drm_plane *plane,
                              unsigned long possible_crtcs,
                              const struct drm_plane_funcs *funcs,
                              const uint32_t *formats,
                              unsigned int format_count,
                              enum drm_plane_type type
+                             ,const char *name, int DOTDOTDOT
                              )
{ ... }

@@
identifier dev, plane, possible_crtcs, funcs, formats, format_count, type;
@@
 int drm_universal_plane_init(struct drm_device *dev,
                              struct drm_plane *plane,
                              unsigned long possible_crtcs,
                              const struct drm_plane_funcs *funcs,
                              const uint32_t *formats,
                              unsigned int format_count,
                              enum drm_plane_type type
+                             ,const char *name, int DOTDOTDOT
                              );

@@
expression E1, E2, E3, E4, E5, E6, E7;
@@
 drm_universal_plane_init(E1, E2, E3, E4, E5, E6, E7
+                         ,NULL
                          )

v2: Split crtc and plane changes apart
    Pass NUL for no-name instead of ""
    Leave drm_plane_init() alone
v3: Add ', or NULL...' to @name kernel doc (Jani)
    Annotate the function with __printf() attribute (Jani)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1449670795-2853-1-git-send-email-ville.syrjala@linux.intel.com
2015-12-11 09:13:10 +01:00
..
Kconfig drm/sti: load HQVDP firmware the first time HQVDP's plane is used 2015-11-03 13:04:56 +01:00
Makefile drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
NOTES
sti_awg_utils.c drm/sti: remove redundant sign extensions 2015-11-03 13:04:55 +01:00
sti_awg_utils.h drm: sti: add DVO output connector 2014-12-30 15:08:16 +01:00
sti_compositor.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_compositor.h drm/sti: rename files and functions 2015-08-03 14:25:06 +02:00
sti_crtc.c drm: Pass 'name' to drm_crtc_init_with_planes() 2015-12-11 09:12:44 +01:00
sti_crtc.h drm/irq: Use unsigned int pipe in public API 2015-10-06 12:57:47 +02:00
sti_cursor.c drm: Pass 'name' to drm_universal_plane_init() 2015-12-11 09:13:10 +01:00
sti_cursor.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_drv.c drm/sti: fix typo issue in sti_mode_config_init 2015-11-03 13:04:55 +01:00
sti_drv.h drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_dvo.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_gdp.c drm: Pass 'name' to drm_universal_plane_init() 2015-12-11 09:13:10 +01:00
sti_gdp.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_hda.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_hdmi_tx3g0c55phy.c drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi_tx3g0c55phy.h drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi_tx3g4c28phy.c drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi_tx3g4c28phy.h drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi.c drm/sti: hdmi use of_get_i2c_adapter_by_node interface 2015-11-03 13:04:54 +01:00
sti_hdmi.h drm: sti: remove gpio for HDMI hot plug detection 2014-12-11 13:58:12 +01:00
sti_hqvdp_lut.h drm: sti: add HQVDP plane 2014-12-11 14:00:13 +01:00
sti_hqvdp.c drm: Pass 'name' to drm_universal_plane_init() 2015-12-11 09:13:10 +01:00
sti_mixer.c drm/sti: set mixer background color through module param 2015-11-03 13:04:55 +01:00
sti_mixer.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_plane.c drm/sti: Do not export symbols 2015-11-03 13:04:54 +01:00
sti_plane.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_tvout.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_vid.c drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_vid.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_vtac.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_vtg.c drm/sti: Do not export symbols 2015-11-03 13:04:54 +01:00
sti_vtg.h drm/sti: Use drm_crtc_vblank_*() API 2015-11-03 13:04:53 +01:00