add version number to power HAL
Change-Id: I6acf4523b5878565035ea6c85bddd58f9b20ef1b
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user