summaryrefslogtreecommitdiffstats
path: root/Power.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Power.cpp')
-rw-r--r--Power.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Power.cpp b/Power.cpp
index f45bf67..f857041 100644
--- a/Power.cpp
+++ b/Power.cpp
@@ -53,7 +53,6 @@ using ::android::hardware::power::V1_1::PowerStateSubsystem;
using ::android::hardware::hidl_vec;
using ::android::hardware::Return;
using ::android::hardware::Void;
-using ::android::hardware::power::V1_0::Feature;
Power::Power() {
power_init();
@@ -78,7 +77,9 @@ Return<void> Power::setFeature(Feature feature, bool activate) {
Return<void> Power::getPlatformLowPowerStats(getPlatformLowPowerStats_cb _hidl_cb) {
hidl_vec<PowerStatePlatformSleepState> states;
uint64_t stats[MAX_PLATFORM_STATS * MAX_RPM_PARAMS] = {0};
+#ifndef LEGACY_STATS
uint64_t *values;
+#endif
struct PowerStatePlatformSleepState *state;
int ret;