From 2d9e90de75043871144ffea8dcebfee8495d1396 Mon Sep 17 00:00:00 2001 From: Valera1978 Date: Thu, 5 Jul 2018 18:59:13 +0300 Subject: [PATCH] add power_set_interactive_ext --- power/power_ext.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/power/power_ext.c b/power/power_ext.c index 60526ea..e7289c6 100755 --- a/power/power_ext.c +++ b/power/power_ext.c @@ -18,7 +18,7 @@ #include #include -#define LOG_TAG "PowerHAL_H_Ext" +#define LOG_TAG "PowerHAL_K_Ext" #include /* touchkeys */ @@ -47,8 +47,12 @@ static void sysfs_write(char *path, char *s) { close(fd); } -void cm_power_set_interactive_ext(int on) { +void power_set_interactive_ext(int on) { ALOGD("%s: %s input devices", __func__, on ? "enabling" : "disabling"); sysfs_write(TK_POWER, on ? "1" : "0"); sysfs_write(TS_POWER, on ? "1" : "0"); } + +void cm_power_set_interactive_ext(int on) { + power_set_interactive_ext(on); +}