drm: Add plane->name and use it in debug prints
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 8 Dec 2015 16:41:54 +0000 (18:41 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Dec 2015 08:13:53 +0000 (09:13 +0100)
commit9f4c97a236d35b9fe45168a979adb5e1522c0968
tree0eb48b1a8ba4824acd1ee230025af77a2c4077fe
parentfa3ab4c2113c74a9eae9b6a718b167f7c8833e78
drm: Add plane->name and use it in debug prints

Show a sensible name for the plane in debug mesages. The driver
may supply its own name, otherwise the core genrates the name
("plane-0", "plane-1" etc.).

v2: kstrdup() the name passed by the caller (Jani)
v3: Generate a default name if the driver doesn't supply one

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/1449592922-5545-7-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h