hikey: gralloc Update for new ION interface

4.12+ kernels have an updated ION interface; this adapts hikey's gralloc
to work seemlessly with both old and new kernels' interfaces.

Test: validated with both new and old kernels on hikey, with aosp master

Change-Id: Ia019fd7f3f5b3e9765c8f26032ff0063e5391f56
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
  [sumits: maintain compatibility with older kernels]
2 files changed