power_hikey: Move set_feature() function lower in file
Simple moving of the function, no code change.
Change-Id: I4975fb983802f0618410167e0ab9d392cec1e409
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/power/power_hikey.c b/power/power_hikey.c
index 8ff781c..059f402 100644
--- a/power/power_hikey.c
+++ b/power/power_hikey.c
@@ -151,17 +151,6 @@
return 0;
}
-static void set_feature(struct power_module *module, feature_t feature, int state)
-{
- struct hikey_power_module *hikey =
- (struct hikey_power_module *) module;
- switch (feature) {
- default:
- ALOGW("Error setting the feature, it doesn't exist %d\n", feature);
- break;
- }
-}
-
static void hikey_power_hint(struct power_module *module, power_hint_t hint,
void *data)
{
@@ -192,6 +181,17 @@
pthread_mutex_unlock(&hikey->lock);
}
+static void set_feature(struct power_module *module, feature_t feature, int state)
+{
+ struct hikey_power_module *hikey =
+ (struct hikey_power_module *) module;
+ switch (feature) {
+ default:
+ ALOGW("Error setting the feature, it doesn't exist %d\n", feature);
+ break;
+ }
+}
+
static struct hw_module_methods_t power_module_methods = {
.open = NULL,
};