aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Foss2018-01-16 08:19:15 -0600
committerRobert Foss2018-02-14 10:33:57 -0600
commited0ed55f3e6c2e1a460d72fed270f6243dcf92a5 (patch)
tree12f7f848ab67f90185741cca182232cbd801238c /android
parent76cd0af39960d0c36e7aacd4fe8d6a08f4af8ecc (diff)
downloadexternal-libgbm-ed0ed55f3e6c2e1a460d72fed270f6243dcf92a5.tar.gz
external-libgbm-ed0ed55f3e6c2e1a460d72fed270f6243dcf92a5.tar.xz
external-libgbm-ed0ed55f3e6c2e1a460d72fed270f6243dcf92a5.zip
android: Mark gralloc_handle_t magic variable as const
Mark magic member of gralloc_handle_t as const. Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'android')
-rw-r--r--android/gralloc_handle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/gralloc_handle.h b/android/gralloc_handle.h
index 7cbc8ee7..5d8a19ea 100644
--- a/android/gralloc_handle.h
+++ b/android/gralloc_handle.h
@@ -51,7 +51,7 @@ struct gralloc_handle_t {
51 int prime_fd; 51 int prime_fd;
52 52
53 /* api variables */ 53 /* api variables */
54 int magic; /* differentiate between allocator impls */ 54 const int magic; /* differentiate between allocator impls */
55 const uint32_t version; /* api version */ 55 const uint32_t version; /* api version */
56 56
57 int width; /* width of buffer in pixels */ 57 int width; /* width of buffer in pixels */