diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2012-03-13 06:35:49 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-15 05:52:37 -0400 |
commit | d63f5e6bf6f2a1573ea39c9937cdf5ab0b3a4b77 (patch) | |
tree | d396df2e0574c0e4b0d0672f612679ea2d7db091 /include/drm/drm_crtc.h | |
parent | 6bfc56aa89f963becbafbaeb105b6a84e0eb0db7 (diff) |
drm: Use a flexible array member for blob property data
The blob property data is always allocated immediately after the object
header. No need for the extra indirection when accessing it, just use
a flexible array member.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 00f4007a6d04..53cb49a13e17 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -257,7 +257,7 @@ struct drm_property_blob { | |||
257 | struct drm_mode_object base; | 257 | struct drm_mode_object base; |
258 | struct list_head head; | 258 | struct list_head head; |
259 | unsigned int length; | 259 | unsigned int length; |
260 | void *data; | 260 | unsigned char data[]; |
261 | }; | 261 | }; |
262 | 262 | ||
263 | struct drm_property_enum { | 263 | struct drm_property_enum { |