linux/drivers/gpu/drm/exynos
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
..
exynos7_drm_decon.c drm/exynos: add cursor plane support 2015-10-26 15:10:27 +09:00
exynos5433_drm_decon.c drm/exynos/decon5433: add support for DECON-TV 2015-11-03 11:46:37 +09:00
exynos_dp_core.c drm/exynos: dp: remove suspend/resume functions 2015-10-01 13:23:13 +09:00
exynos_dp_core.h drm/exynos: remove struct exynos_drm_encoder layer 2015-08-16 10:35:54 +09:00
exynos_dp_reg.c drm/exynos: Fix checkpatch warning in exynos_dp_reg.c 2014-06-02 02:07:12 +09:00
exynos_dp_reg.h
exynos_drm_core.c drm/exynos: Remove useless EXPORT_SYMBOL_GPLs 2015-09-30 16:39:41 +09:00
exynos_drm_crtc.c drm: Pass 'name' to drm_crtc_init_with_planes() 2015-12-11 09:12:44 +01:00
exynos_drm_crtc.h drm/irq: Use unsigned int pipe in public API 2015-10-06 12:57:47 +02:00
exynos_drm_dpi.c drm/exynos: remove struct exynos_drm_encoder layer 2015-08-16 10:35:54 +09:00
exynos_drm_drv.c drm/exynos: separate Mixer and HDMI drivers 2015-11-03 11:46:38 +09:00
exynos_drm_drv.h drm/exynos: add atomic_check callback to exynos_crtc 2015-11-03 11:46:37 +09:00
exynos_drm_dsi.c drm/exynos: remove struct exynos_drm_encoder layer 2015-08-16 10:35:54 +09:00
exynos_drm_fb.c drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create() 2015-11-24 11:47:38 +01:00
exynos_drm_fb.h drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create() 2015-11-24 11:47:38 +01:00
exynos_drm_fbdev.c drm/exynos: cleanup name of gem object for exynos_drm 2015-10-26 15:10:34 +09:00
exynos_drm_fbdev.h
exynos_drm_fimc.c drm/exynos: fix spelling errors 2015-10-26 15:10:17 +09:00
exynos_drm_fimc.h
exynos_drm_fimd.c drm/exynos: add cursor plane support 2015-10-26 15:10:27 +09:00
exynos_drm_g2d.c drm/exynos: Remove useless EXPORT_SYMBOL_GPLs 2015-09-30 16:39:41 +09:00
exynos_drm_g2d.h
exynos_drm_gem.c drm/exynos/gem: remove DMA-mapping hacks used for constructing page array 2015-11-03 11:46:39 +09:00
exynos_drm_gem.h drm/exynos: cleanup name of gem object for exynos_drm 2015-10-26 15:10:34 +09:00
exynos_drm_gsc.c drm/exynos: fix spelling errors 2015-10-26 15:10:17 +09:00
exynos_drm_gsc.h
exynos_drm_iommu.c drm/exynos: fix to detach device of iommu 2015-10-26 15:10:30 +09:00
exynos_drm_iommu.h drm/exynos: remove drm_iommu_attach_device_if_possible 2015-08-16 10:23:33 +09:00
exynos_drm_ipp.c drm/exynos: remove unnecessary checking to support iommu 2015-08-16 10:23:32 +09:00
exynos_drm_ipp.h drm/exynos/ipp: remove unused field in command node 2014-09-20 00:56:10 +09:00
exynos_drm_mic.c drm/exynos: mic: add MIC driver 2015-06-22 20:04:56 +09:00
exynos_drm_plane.c drm: Pass 'name' to drm_universal_plane_init() 2015-12-11 09:13:10 +01:00
exynos_drm_plane.h drm/exynos: add cursor plane support 2015-10-26 15:10:27 +09:00
exynos_drm_rotator.c drm/exynos: rotator: Clock control is unused if !PM 2015-09-30 16:44:14 +09:00
exynos_drm_rotator.h
exynos_drm_vidi.c drm/exynos: add cursor plane support 2015-10-26 15:10:27 +09:00
exynos_drm_vidi.h
exynos_hdmi.c drm/exynos/mixer: replace direct cross-driver call with drm mode validation 2015-11-03 11:46:38 +09:00
exynos_mixer.c drm/exynos/mixer: replace direct cross-driver call with drm mode validation 2015-11-03 11:46:38 +09:00
Kconfig drm/exynos: simplify Kconfig component names 2015-11-03 11:46:38 +09:00
Makefile drm/exynos: separate Mixer and HDMI drivers 2015-11-03 11:46:38 +09:00
regs-fimc.h
regs-gsc.h
regs-hdmi.h drm/exynos/hdmi: improve HDMI/ACR related code 2015-10-26 15:10:04 +09:00
regs-mixer.h drm/exynos: fix typos in hdmi and mixer 2015-04-13 11:39:40 +09:00
regs-rotator.h
regs-vp.h