diff options
Diffstat (limited to 'Power.cpp')
-rw-r--r-- | Power.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |