summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRashed Abdel-Tawab <rashed@linux.com>2017-12-26 23:11:03 +0200
committerRashed Abdel-Tawab <rashed@linux.com>2017-12-29 23:29:05 +0200
commit9c14c9f595ba8fc0cfbc802a628c9166fcd50dbb (patch)
tree0146f3387442a3d924261cd5ad299d378039959c
parent72201a0b49f2577dec5fa31954b73ac7a2bc24f1 (diff)
downloadandroid_hardware_qcom_power-9c14c9f595ba8fc0cfbc802a628c9166fcd50dbb.tar.gz
android_hardware_qcom_power-9c14c9f595ba8fc0cfbc802a628c9166fcd50dbb.tar.bz2
android_hardware_qcom_power-9c14c9f595ba8fc0cfbc802a628c9166fcd50dbb.zip
power: Build with VNDK=current
Change-Id: I27b9a90dbb5214cc8973d8de0775eb9fe30922ec
-rw-r--r--Android.mk1
-rw-r--r--list.c2
-rw-r--r--power-8996.c2
-rw-r--r--power-8998.c3
-rw-r--r--power.c3
-rw-r--r--powerhintparser.c3
-rw-r--r--utils.c3
7 files changed, 11 insertions, 6 deletions
diff --git a/Android.mk b/Android.mk
index d78fb85..1f4771c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -85,6 +85,7 @@ LOCAL_MODULE := power.qcom
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
LOCAL_VENDOR_MODULE := true
+LOCAL_HEADER_LIBRARIES := libhardware_headers
include $(BUILD_SHARED_LIBRARY)
endif
diff --git a/list.c b/list.c
index 0fe8de2..dcd1f48 100644
--- a/list.c
+++ b/list.c
@@ -32,7 +32,7 @@
#include <string.h>
#include "list.h"
-#include <utils/Log.h>
+#include <log/log.h>
int init_list_head(struct list_node *head)
{
diff --git a/power-8996.c b/power-8996.c
index 6358d1e..31b581d 100644
--- a/power-8996.c
+++ b/power-8996.c
@@ -37,7 +37,7 @@
#include <stdlib.h>
#define LOG_TAG "QCOM PowerHAL"
-#include <utils/Log.h>
+#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/power.h>
diff --git a/power-8998.c b/power-8998.c
index e51991b..96366a8 100644
--- a/power-8998.c
+++ b/power-8998.c
@@ -35,9 +35,10 @@
#include <fcntl.h>
#include <dlfcn.h>
#include <stdlib.h>
+#include <pthread.h>
#define LOG_TAG "QTI PowerHAL"
-#include <utils/Log.h>
+#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/power.h>
diff --git a/power.c b/power.c
index 6568ca5..3dd8634 100644
--- a/power.c
+++ b/power.c
@@ -36,9 +36,10 @@
#include <fcntl.h>
#include <dlfcn.h>
#include <stdlib.h>
+#include <unistd.h>
#define LOG_TAG "QCOM PowerHAL"
-#include <utils/Log.h>
+#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/power.h>
diff --git a/powerhintparser.c b/powerhintparser.c
index af15440..70704f9 100644
--- a/powerhintparser.c
+++ b/powerhintparser.c
@@ -26,9 +26,10 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
-#include <cutils/log.h>
+#include <log/log.h>
#include <fcntl.h>
#include <string.h>
+#include <unistd.h>
#include <cutils/properties.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
diff --git a/utils.c b/utils.c
index af8e815..0456377 100644
--- a/utils.c
+++ b/utils.c
@@ -33,6 +33,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include "utils.h"
#include "list.h"
@@ -40,7 +41,7 @@
#include "power-common.h"
#define LOG_TAG "QCOM PowerHAL"
-#include <utils/Log.h>
+#include <log/log.h>
char scaling_gov_path[4][80] ={
"sys/devices/system/cpu/cpu0/cpufreq/scaling_governor",