summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2014-05-14 16:58:19 +0300
committerDave Airlie <airlied@redhat.com>2014-05-30 11:58:41 +1000
commit2abdd3137e78adca69b0722307aa2ef89f2cf3b6 (patch)
tree8b78eaf6cf41b5e0956d2cdc4b62c65ab1960893 /include
parentb8380580836bf81d032da6099879da9f6b515325 (diff)
downloadlinux-2abdd3137e78adca69b0722307aa2ef89f2cf3b6.tar.gz
linux-2abdd3137e78adca69b0722307aa2ef89f2cf3b6.tar.bz2
linux-2abdd3137e78adca69b0722307aa2ef89f2cf3b6.zip
drm: store connector name in connector struct (v2)
This makes drm_get_connector_name() thread safe. [airlied: fix to build.] Reference: http://lkml.kernel.org/r/645ee6e22cad47d38a2b35c21c8d5fe3@DC1-MBX-01.ptsecurity.ru Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-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 698d54e27f39..b5c97d5b2654 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -444,6 +444,7 @@ struct drm_encoder {
* @attr: sysfs attributes
* @head: list management
* @base: base KMS object
+ * @name: connector name
* @connector_type: one of the %DRM_MODE_CONNECTOR_<foo> types from drm_mode.h
* @connector_type_id: index into connector type enum
* @interlace_allowed: can this connector handle interlaced modes?
@@ -482,6 +483,7 @@ struct drm_connector {
struct drm_mode_object base;
+ char *name;
int connector_type;
int connector_type_id;
bool interlace_allowed;