summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorIliyan Malchev <malchev@google.com>2014-09-10 00:03:06 -0700
committerIliyan Malchev <malchev@google.com>2014-09-10 00:03:06 -0700
commit2084f7d0cf50baf394759d175bc28ad80cf7cace (patch)
tree009151b0a66996d361c91486d0e6c932188c01f3 /power
parent4803b1a0417fe2b250913e52413b8c319de1ed72 (diff)
downloadshamu-2084f7d0cf50baf394759d175bc28ad80cf7cace.tar.gz
shamu: disable double tap in power HAL
Change-Id: Id133dcc828bedf13bb8a03f6633a2877ef1e5826 Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'power')
-rw-r--r--power/power_shamu.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/power/power_shamu.c b/power/power_shamu.c
index 2dfd3601..3090483d 100644
--- a/power/power_shamu.c
+++ b/power/power_shamu.c
@@ -35,7 +35,6 @@
#include <hardware/hardware.h>
#include <hardware/power.h>
-#define TOUCH_INTERACTIVE_PATH "/sys/bus/i2c/devices/1-004a/tsp"
#define STATE_ON "state=1"
#define STATE_OFF "state=0"
#define STATE_HDR_ON "state=2"
@@ -60,30 +59,6 @@ static void socket_init()
}
}
-static int sysfs_write(const char *path, char *s)
-{
- char buf[80];
- int len;
- int fd = open(path, O_WRONLY);
-
- if (fd < 0) {
- strerror_r(errno, buf, sizeof(buf));
- ALOGE("Error opening %s: %s\n", path, buf);
- return -1;
- }
-
- len = write(fd, s, strlen(s));
- if (len < 0) {
- strerror_r(errno, buf, sizeof(buf));
- ALOGE("Error writing to %s: %s\n", path, buf);
- close(fd);
- return -1;
- }
-
- close(fd);
- return 0;
-}
-
static void power_init(__attribute__((unused)) struct power_module *module)
{
ALOGI("%s", __func__);
@@ -266,8 +241,6 @@ static void process_low_power_hint(void* data)
static void power_set_interactive(__attribute__((unused)) struct power_module *module, int on)
{
- sysfs_write(TOUCH_INTERACTIVE_PATH, on ? "AUTO" : "ON");
-
if (last_state == -1) {
last_state = on;
} else {