From c6f16d5c1fc1a803cba6674cc0d67156c222efec Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Sun, 6 Mar 2016 10:29:23 +1100 Subject: i9300: libsensors: fix a couple of poll_delay derps Change-Id: I6a6e307588e1d9a0c56895d4dc6a1702066b6059 --- libsensors/ProximitySensor.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'libsensors/ProximitySensor.cpp') diff --git a/libsensors/ProximitySensor.cpp b/libsensors/ProximitySensor.cpp index 2ba56c1..9e5d7d1 100644 --- a/libsensors/ProximitySensor.cpp +++ b/libsensors/ProximitySensor.cpp @@ -73,18 +73,8 @@ int ProximitySensor::setInitialState() { int ProximitySensor::setDelay(int32_t handle, int64_t ns) { - int fd; - - strcpy(&input_sysfs_path[input_sysfs_path_len], "prox_poll_delay"); - fd = open(input_sysfs_path, O_RDWR); - if (fd >= 0) { - char buf[80]; - sprintf(buf, "%lld", ns); - write(fd, buf, strlen(buf)+1); - close(fd); - return 0; - } - return -1; + // unsupported + return 0; } int ProximitySensor::enable(int32_t handle, int en) { -- cgit v1.1