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>main
parent
76cd0af399
commit
ed0ed55f3e
|
@ -51,7 +51,7 @@ struct gralloc_handle_t {
|
||||||
int prime_fd;
|
int prime_fd;
|
||||||
|
|
||||||
/* api variables */
|
/* api variables */
|
||||||
int magic; /* differentiate between allocator impls */
|
const int magic; /* differentiate between allocator impls */
|
||||||
const uint32_t version; /* api version */
|
const uint32_t version; /* api version */
|
||||||
|
|
||||||
int width; /* width of buffer in pixels */
|
int width; /* width of buffer in pixels */
|
||||||
|
|
Loading…
Reference in New Issue