add version number to power HAL

Change-Id: I6acf4523b5878565035ea6c85bddd58f9b20ef1b
This commit is contained in:
Mathias Agopian
2012-04-26 19:49:40 -07:00
parent 2f143fba74
commit 5cb1de89a9
2 changed files with 9 additions and 2 deletions

View File

@@ -25,6 +25,10 @@
__BEGIN_DECLS __BEGIN_DECLS
#define POWER_MODULE_API_VERSION_0_1 HARDWARE_MODULE_API_VERSION(0, 1)
#define POWER_MODULE_API_VERSION_0_2 HARDWARE_MODULE_API_VERSION(0, 2)
/** /**
* The id of this module * The id of this module
*/ */
@@ -100,6 +104,9 @@ typedef struct power_module {
* VSYNC pulse no longer requested. * VSYNC pulse no longer requested.
* *
* A particular platform may choose to ignore any hint. * A particular platform may choose to ignore any hint.
*
* availability: version 0.2
*
*/ */
void (*powerHint)(struct power_module *module, power_hint_t hint, void (*powerHint)(struct power_module *module, power_hint_t hint,
void *data); void *data);

View File

@@ -74,8 +74,8 @@ static struct hw_module_methods_t power_module_methods = {
struct power_module HAL_MODULE_INFO_SYM = { struct power_module HAL_MODULE_INFO_SYM = {
.common = { .common = {
.tag = HARDWARE_MODULE_TAG, .tag = HARDWARE_MODULE_TAG,
.version_major = 1, .module_api_version = POWER_MODULE_API_VERSION_0_2,
.version_minor = 0, .hal_api_version = HARDWARE_HAL_API_VERSION,
.id = POWER_HARDWARE_MODULE_ID, .id = POWER_HARDWARE_MODULE_ID,
.name = "Default Power HAL", .name = "Default Power HAL",
.author = "The Android Open Source Project", .author = "The Android Open Source Project",