From 92085eed101910c8bd50dc8fed473d4cab42c43d Mon Sep 17 00:00:00 2001 From: Shirayuki39 Date: Wed, 14 Aug 2024 21:14:33 +0800 Subject: [PATCH] LG8n: power: Adapt namespace for libperfmgr Signed-off-by: Shirayuki39 --- BoardConfig.mk | 1 + power/power-mode.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index a544961..17e311e 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -59,6 +59,7 @@ BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE := true # DT2W TARGET_TAP_TO_WAKE_NODE := /proc/gesture_function +TARGET_POWERHAL_MODE_EXT := $(DEVICE_PATH)/power/power-mode.cpp # DTB BOARD_PREBUILT_DTBOIMAGE := $(KERNEL_PATH)/dtbo.img diff --git a/power/power-mode.cpp b/power/power-mode.cpp index cad725e..0ffa53e 100644 --- a/power/power-mode.cpp +++ b/power/power-mode.cpp @@ -10,11 +10,11 @@ #include namespace aidl { -namespace android { +namespace google { namespace hardware { namespace power { namespace impl { -namespace mediatek { +namespace pixel { using ::aidl::android::hardware::power::Mode; @@ -39,9 +39,9 @@ bool setDeviceSpecificMode(Mode type, bool enabled) { } } -} // namespace mediatek +} // namespace pixel } // namespace impl } // namespace power } // namespace hardware -} // namespace android +} // namespace google } // namespace aidl