drm: add 'count' to struct drm_object_properties
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 15 May 2012 21:09:04 +0000 (18:09 -0300)
committerDave Airlie <airlied@redhat.com>
Thu, 17 May 2012 10:11:38 +0000 (11:11 +0100)
commit7f88a9bedfb814a2d4d537db8295c524298256cb
treeddfb291cada7622915622a95ff2263612bdf1715
parent0057d8dd8d378bf88f75736496d779f3c9454b5f
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>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h