aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring2018-02-14 17:10:25 -0600
committerRob Herring2018-02-20 14:15:38 -0600
commit5db7bf41b27d7445f2920a938c780920b6c27851 (patch)
tree5884d828fe57c7f434784f02fa0f2227652a2a40 /android
parent9eb6c8a6b1aad741ddd23f8fd85925d795edbee3 (diff)
downloadexternal-libgbm-5db7bf41b27d7445f2920a938c780920b6c27851.tar.gz
external-libgbm-5db7bf41b27d7445f2920a938c780920b6c27851.tar.xz
external-libgbm-5db7bf41b27d7445f2920a938c780920b6c27851.zip
android: revert making handle magic and version members const
Const members are problematic for dynamically allocating struct gralloc_handle_t, so just drop the const modifier. Reviewed-by: Robert Foss <robert.foss@collabora.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'android')
-rw-r--r--android/gralloc_handle.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/gralloc_handle.h b/android/gralloc_handle.h
index b47bee19..b035e035 100644
--- a/android/gralloc_handle.h
+++ b/android/gralloc_handle.h
@@ -51,8 +51,8 @@ struct gralloc_handle_t {
51 int prime_fd; 51 int prime_fd;
52 52
53 /* api variables */ 53 /* api variables */
54 const uint32_t magic; /* differentiate between allocator impls */ 54 uint32_t magic; /* differentiate between allocator impls */
55 const uint32_t version; /* api version */ 55 uint32_t version; /* api version */
56 56
57 uint32_t width; /* width of buffer in pixels */ 57 uint32_t width; /* width of buffer in pixels */
58 uint32_t height; /* height of buffer in pixels */ 58 uint32_t height; /* height of buffer in pixels */