diff options
author | Jani Nikula <jani.nikula@intel.com> | 2014-05-14 16:58:19 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-05-30 11:58:41 +1000 |
commit | 2abdd3137e78adca69b0722307aa2ef89f2cf3b6 (patch) | |
tree | 8b78eaf6cf41b5e0956d2cdc4b62c65ab1960893 /include/drm | |
parent | b8380580836bf81d032da6099879da9f6b515325 (diff) | |
download | talos-op-linux-2abdd3137e78adca69b0722307aa2ef89f2cf3b6.tar.gz talos-op-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/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 2 |
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; |