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>
main
Rob Herring 2018-02-14 17:10:25 -06:00
parent 9eb6c8a6b1
commit 5db7bf41b2
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ struct gralloc_handle_t {
int prime_fd; int prime_fd;
/* api variables */ /* api variables */
const uint32_t magic; /* differentiate between allocator impls */ uint32_t magic; /* differentiate between allocator impls */
const uint32_t version; /* api version */ uint32_t version; /* api version */
uint32_t width; /* width of buffer in pixels */ uint32_t width; /* width of buffer in pixels */
uint32_t height; /* height of buffer in pixels */ uint32_t height; /* height of buffer in pixels */