hikey: Remove Power HAL compile warnings am: 0ea8f4dfe2
am: 3d5d6c76a8

Change-Id: I7b3455245d36731aab6f3f149fd5ff41a6c57c8a
diff --git a/power/power_hikey.c b/power/power_hikey.c
index df4743f..5143cb7 100644
--- a/power/power_hikey.c
+++ b/power/power_hikey.c
@@ -320,12 +320,13 @@
                                               struct hikey_power_module, base);
     switch (feature) {
     default:
-        ALOGW("Error setting the feature, it doesn't exist %d\n", feature);
+        ALOGW("Error setting the feature %d and state %d, it doesn't exist\n",
+              feature, state);
         break;
     }
 }
 
-static int power_open(const hw_module_t* module, const char* name,
+static int power_open(const hw_module_t* __unused module, const char* name,
                     hw_device_t** device)
 {
     int retval = 0; /* 0 is ok; -1 is error */
@@ -362,25 +363,24 @@
 };
 
 struct hikey_power_module HAL_MODULE_INFO_SYM = {
-    base: {
-        common: {
-            tag: HARDWARE_MODULE_TAG,
-            module_api_version: POWER_MODULE_API_VERSION_0_2,
-            hal_api_version: HARDWARE_HAL_API_VERSION,
-            id: POWER_HARDWARE_MODULE_ID,
-            name: "HiKey Power HAL",
-            author: "The Android Open Source Project",
-            methods: &power_module_methods,
+    .base = {
+        .common = {
+            .tag = HARDWARE_MODULE_TAG,
+            .module_api_version = POWER_MODULE_API_VERSION_0_2,
+            .hal_api_version = HARDWARE_HAL_API_VERSION,
+            .id = POWER_HARDWARE_MODULE_ID,
+            .name = "HiKey Power HAL",
+            .author = "The Android Open Source Project",
+            .methods = &power_module_methods,
         },
 
-        init: hikey_power_init,
-        setInteractive: power_set_interactive,
-        powerHint: hikey_power_hint,
-        setFeature: set_feature,
+        .init = hikey_power_init,
+        .setInteractive = power_set_interactive,
+        .powerHint = hikey_power_hint,
+        .setFeature = set_feature,
     },
 
-    lock: PTHREAD_MUTEX_INITIALIZER,
-    boostpulse_fd: -1,
-    boostpulse_warned: 0,
+    .lock = PTHREAD_MUTEX_INITIALIZER,
+    .boostpulse_fd = -1,
+    .boostpulse_warned = 0,
 };
-