aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-12-08 18:41:53 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-12-11 09:13:48 +0100
commitfa3ab4c2113c74a9eae9b6a718b167f7c8833e78 (patch)
tree90a47e8049e4ea83058ec804340c52d059e96eab /include/drm/drm_crtc.h
parentdrm: Use driver specified encoder name (diff)
downloadlinux-dev-fa3ab4c2113c74a9eae9b6a718b167f7c8833e78.tar.xz
linux-dev-fa3ab4c2113c74a9eae9b6a718b167f7c8833e78.zip
drm: Add crtc->name and use it in debug messages
Show a sensible name for the crtc in debug mesages. The driver may supply its own name, otherwise the core genrates the name ("crtc-0", "crtc-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-6-git-send-email-ville.syrjala@linux.intel.com
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 5b5e6b650c11..4bea0a1151bc 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -712,6 +712,8 @@ struct drm_crtc {
struct device_node *port;
struct list_head head;
+ char *name;
+
/*
* crtc mutex
*