aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2014-12-16 18:05:30 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-12-17 14:23:24 -0500
commitb17cd757a3f61e4519b70b4673f0467ec0153a10 (patch)
tree80ca0fb8278f020faf64db835ac04b4010845bc9 /include/drm
parent3843e71f9882c9e2e965cf025f3a7d4de19ce823 (diff)
drm: store property instead of id in obj attachment
Keep property pointer, instead of id, in per mode-object attachments. This will simplify things in later patches. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_crtc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index fd8139ca629a..265f90afcac4 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -64,7 +64,12 @@ struct drm_mode_object {
64#define DRM_OBJECT_MAX_PROPERTY 24 64#define DRM_OBJECT_MAX_PROPERTY 24
65struct drm_object_properties { 65struct drm_object_properties {
66 int count; 66 int count;
67 uint32_t ids[DRM_OBJECT_MAX_PROPERTY]; 67 /* NOTE: if we ever start dynamically destroying properties (ie.
68 * not at drm_mode_config_cleanup() time), then we'd have to do
69 * a better job of detaching property from mode objects to avoid
70 * dangling property pointers:
71 */
72 struct drm_property *properties[DRM_OBJECT_MAX_PROPERTY];
68 uint64_t values[DRM_OBJECT_MAX_PROPERTY]; 73 uint64_t values[DRM_OBJECT_MAX_PROPERTY];
69}; 74};
70 75