diff --git a/include/hardware/power.h b/include/hardware/power.h index 1cb21341..d6a84edb 100644 --- a/include/hardware/power.h +++ b/include/hardware/power.h @@ -25,6 +25,10 @@ __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 */ @@ -100,6 +104,9 @@ typedef struct power_module { * VSYNC pulse no longer requested. * * A particular platform may choose to ignore any hint. + * + * availability: version 0.2 + * */ void (*powerHint)(struct power_module *module, power_hint_t hint, void *data); diff --git a/modules/power/power.c b/modules/power/power.c index 7d8c1122..4b9457f0 100644 --- a/modules/power/power.c +++ b/modules/power/power.c @@ -74,8 +74,8 @@ static struct hw_module_methods_t power_module_methods = { struct power_module HAL_MODULE_INFO_SYM = { .common = { .tag = HARDWARE_MODULE_TAG, - .version_major = 1, - .version_minor = 0, + .module_api_version = POWER_MODULE_API_VERSION_0_2, + .hal_api_version = HARDWARE_HAL_API_VERSION, .id = POWER_HARDWARE_MODULE_ID, .name = "Default Power HAL", .author = "The Android Open Source Project",