]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/drm/drm_crtc.h
drm: Add crtc->name and use it in debug messages
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 8 Dec 2015 16:41:53 +0000 (18:41 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Dec 2015 08:13:48 +0000 (09:13 +0100)
commitfa3ab4c2113c74a9eae9b6a718b167f7c8833e78
tree90a47e8049e4ea83058ec804340c52d059e96eab
parent86bf546b339914b29f9068bcbb7696355e246a47
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
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_crtc_helper.c
include/drm/drm_crtc.h