summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-02-23 21:25:01 +0200
committerLiu Ying <victor.liu@nxp.com>2019-09-17 10:29:11 +0800
commit25174baf0bc6a00f41a0fec92d84a1672eb7c66e (patch)
treeb82bb49e971e941e1e6da25ca8944cc7df8cfff6 /include
parent4061ab83d4ca6edbce512139f1d8441347840ccd (diff)
Revert "drm: Use a flexible array member for blob property data"
Using a flexible array for the blob data was a mistake by me. It forces all users of the blob data to cast blob->data to something else. void* is clearly superior so let's go back to the original scheme. Not a clean revert as the code has moved. This reverts commit d63f5e6bf6f2a1573ea39c9937cdf5ab0b3a4b77. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180223192506.29992-1-ville.syrjala@linux.intel.com Reviewed-by: Shashank Sharma <shashank.sharma@intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> (cherry picked from commit 9c60583c0b0fd6f3a5b61fda3eb604ce218b9d25)
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_property.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_property.h b/include/drm/drm_property.h
index 342b41e13c60..72ebc3c18b6b 100644
--- a/include/drm/drm_property.h
+++ b/include/drm/drm_property.h
@@ -209,7 +209,7 @@ struct drm_property_blob {
struct list_head head_global;
struct list_head head_file;
size_t length;
- unsigned char data[];
+ void *data;
};
struct drm_prop_enum_list {