aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2014-05-14 09:58:20 -0400
committerDave Airlie <airlied@redhat.com>2014-05-29 21:58:45 -0400
commite5748946e907f767e7bb73e5ed31584981f0ff65 (patch)
tree7a4163d1c05ba4139c97d2cec27dab9a240584b2 /include/drm/drm_crtc.h
parent2abdd3137e78adca69b0722307aa2ef89f2cf3b6 (diff)
drm: store encoder name in encoder struct
This makes drm_get_encoder_name() thread safe. 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/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 b5c97d5b2654..5c1c31cc11cd 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -400,6 +400,7 @@ struct drm_encoder_funcs {
400 * @dev: parent DRM device 400 * @dev: parent DRM device
401 * @head: list management 401 * @head: list management
402 * @base: base KMS object 402 * @base: base KMS object
403 * @name: encoder name
403 * @encoder_type: one of the %DRM_MODE_ENCODER_<foo> types in drm_mode.h 404 * @encoder_type: one of the %DRM_MODE_ENCODER_<foo> types in drm_mode.h
404 * @possible_crtcs: bitmask of potential CRTC bindings 405 * @possible_crtcs: bitmask of potential CRTC bindings
405 * @possible_clones: bitmask of potential sibling encoders for cloning 406 * @possible_clones: bitmask of potential sibling encoders for cloning
@@ -416,6 +417,7 @@ struct drm_encoder {
416 struct list_head head; 417 struct list_head head;
417 418
418 struct drm_mode_object base; 419 struct drm_mode_object base;
420 char *name;
419 int encoder_type; 421 int encoder_type;
420 uint32_t possible_crtcs; 422 uint32_t possible_crtcs;
421 uint32_t possible_clones; 423 uint32_t possible_clones;