add power_set_interactive_ext
This commit is contained in:
parent
9f164b31ff
commit
2d9e90de75
@ -18,7 +18,7 @@
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#define LOG_TAG "PowerHAL_H_Ext"
|
||||
#define LOG_TAG "PowerHAL_K_Ext"
|
||||
#include <utils/Log.h>
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user