OSDN Git Service

add version number to power HAL
authorMathias Agopian <mathias@google.com>
Fri, 27 Apr 2012 02:49:40 +0000 (19:49 -0700)
committerMathias Agopian <mathias@google.com>
Fri, 27 Apr 2012 02:49:40 +0000 (19:49 -0700)
Change-Id: I6acf4523b5878565035ea6c85bddd58f9b20ef1b

include/hardware/power.h
modules/power/power.c

index 1cb2134..d6a84ed 100644 (file)
 
 __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);
index 7d8c112..4b9457f 100644 (file)
@@ -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",