diff options
Diffstat (limited to 'sensors/cm36651_proximity.c')
-rw-r--r-- | sensors/cm36651_proximity.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sensors/cm36651_proximity.c b/sensors/cm36651_proximity.c index 108f00b..163042a 100644 --- a/sensors/cm36651_proximity.c +++ b/sensors/cm36651_proximity.c @@ -20,6 +20,7 @@ #include <stdint.h> #include <fcntl.h> #include <errno.h> +#include <string.h> #include <sys/types.h> #include <linux/ioctl.h> #include <linux/input.h> @@ -64,7 +65,7 @@ int cm36651_proximity_init(struct smdk4x12_sensors_handlers *handlers, goto error; } - snprintf(data->path_delay, PATH_MAX, "%s/prox_poll_delay", path); + snprintf(data->path_delay, PATH_MAX, "%s/poll_delay", path); handlers->poll_fd = input_fd; handlers->data = (void *) data; @@ -148,12 +149,12 @@ int cm36651_proximity_deactivate(struct smdk4x12_sensors_handlers *handlers) return 0; } -int cm36651_proximity_set_delay(struct smdk4x12_sensors_handlers *handlers, long int delay) +int cm36651_proximity_set_delay(struct smdk4x12_sensors_handlers *handlers, int64_t delay) { struct cm36651_proximity_data *data; int rc; - ALOGD("%s(%p, %ld)", __func__, handlers, delay); + ALOGD("%s(%p, %" PRId64 ")", __func__, handlers, delay); if (handlers == NULL || handlers->data == NULL) return -EINVAL; |