OSDN Git Service

context_hub: Fix version defines
authorGreg Kaiser <gkaiser@google.com>
Mon, 28 Mar 2016 16:06:56 +0000 (09:06 -0700)
committerGreg Kaiser <gkaiser@google.com>
Mon, 28 Mar 2016 16:06:56 +0000 (09:06 -0700)
commit5600a6a14cec5aa7a09ad10d5a1299a60e3de3c7
treecc538149a89e75b250b07d53a2d80e72ba8977c1
parent45e2e5fc17d777aff95045000b1530cd9c9254f5
context_hub: Fix version defines

We're defining the version of a hardware module (hw_module_t), not
a hardware device (hw_device_t).  Thus, we only have 16 bits for
our version number, instead of 32, and need to use the
HARDWARE_DEVICE_API_VERSION macro.

Additionally, for the CONTEXT_HUB_DEVICE_API_VERSION_1_0 define,
which has 1 and 0 hard-coded in the name itself, we hard code 1 and 0
within its definition.

We create CONTEXT_HUB_DEVICE_API_VERSION which will change as we update
the major and minor version numbers in this header.

Bug: 27798362
Change-Id: I58b9751dfb1989fd6bb7fbfc01329494cd88130c
include/hardware/context_hub.h