aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2012-05-15 17:09:04 -0400
committerDave Airlie <airlied@redhat.com>2012-05-17 06:11:38 -0400
commit7f88a9bedfb814a2d4d537db8295c524298256cb (patch)
treeddfb291cada7622915622a95ff2263612bdf1715 /include/drm/drm_crtc.h
parent0057d8dd8d378bf88f75736496d779f3c9454b5f (diff)
drm: add 'count' to struct drm_object_properties
This way, we don't need to count every time, so we're a little bit faster and code is a little bit smaller. Change suggested by Ville Syrjälä. Reviewed-by: Rob Clark <rob.clark@linaro.org> Tested-by: Rob Clark <rob.clark@linaro.org> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index b0c32499fcd4..6d36552899ae 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -56,6 +56,7 @@ struct drm_mode_object {
56 56
57#define DRM_OBJECT_MAX_PROPERTY 16 57#define DRM_OBJECT_MAX_PROPERTY 16
58struct drm_object_properties { 58struct drm_object_properties {
59 int count;
59 uint32_t ids[DRM_OBJECT_MAX_PROPERTY]; 60 uint32_t ids[DRM_OBJECT_MAX_PROPERTY];
60 uint64_t values[DRM_OBJECT_MAX_PROPERTY]; 61 uint64_t values[DRM_OBJECT_MAX_PROPERTY];
61}; 62};