summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2018-06-09 12:54:02 -0700
committerEthan Chen <intervigil@gmail.com>2018-06-09 12:54:02 -0700
commitf66d76e7affb0685ec86ca1f796790154dc4424f (patch)
tree3612f88ddcb4e10c5f319cdfdad93f0885775bfe
parentac865c8352be24e2775bfa20df9508b55d2e24d6 (diff)
downloadandroid_hardware_lineage_interfaces-f66d76e7affb0685ec86ca1f796790154dc4424f.tar.gz
android_hardware_lineage_interfaces-f66d76e7affb0685ec86ca1f796790154dc4424f.tar.bz2
android_hardware_lineage_interfaces-f66d76e7affb0685ec86ca1f796790154dc4424f.zip
livedisplay: Correct macro copypasta
* Rename the macros for the LegacyMM implementation. Change-Id: I44660a14fbb97348aa62952ea930040e8f5a868b
-rw-r--r--livedisplay/1.0/default/controller/LegacyMMController.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/livedisplay/1.0/default/controller/LegacyMMController.cpp b/livedisplay/1.0/default/controller/LegacyMMController.cpp
index b1b5483..12a8e13 100644
--- a/livedisplay/1.0/default/controller/LegacyMMController.cpp
+++ b/livedisplay/1.0/default/controller/LegacyMMController.cpp
@@ -24,10 +24,10 @@
#include <dlfcn.h>
-#define LOAD_SDM_FUNCTION(name) \
+#define LOAD_MM_FUNCTION(name) \
mFn_##name = loadFunction<disp_api_##name>(mHandle, "disp_api_" #name);
-#define CLOSE_SDM_FUNCTION(name) mFn_##name = nullptr;
+#define CLOSE_MM_FUNCTION(name) mFn_##name = nullptr;
#define FOR_EACH_FUNCTION(MACRO) \
MACRO(init) \
@@ -76,13 +76,13 @@ namespace implementation {
LegacyMMController::LegacyMMController() {
mHandle = openlib();
if (mHandle != nullptr) {
- FOR_EACH_FUNCTION(LOAD_SDM_FUNCTION)
+ FOR_EACH_FUNCTION(LOAD_MM_FUNCTION)
}
}
std::shared_ptr<void> LegacyMMController::openlib() {
std::shared_ptr<void> handle(dlopen(kFilename, RTLD_NOW), [this](void* p) {
- FOR_EACH_FUNCTION(CLOSE_SDM_FUNCTION)
+ FOR_EACH_FUNCTION(CLOSE_MM_FUNCTION)
if (p != nullptr) {
int err = dlclose(p);
p = nullptr;