diff options
Diffstat (limited to 'sensors/bmp180.c')
-rw-r--r-- | sensors/bmp180.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sensors/bmp180.c b/sensors/bmp180.c index c50474c..909480a 100644 --- a/sensors/bmp180.c +++ b/sensors/bmp180.c @@ -21,6 +21,7 @@ #include <fcntl.h> #include <errno.h> #include <math.h> +#include <string.h> #include <sys/types.h> #include <linux/ioctl.h> #include <linux/input.h> @@ -65,7 +66,7 @@ int bmp180_init(struct smdk4x12_sensors_handlers *handlers, goto error; } - snprintf(data->path_delay, PATH_MAX, "%s/pressure_poll_delay", path); + snprintf(data->path_delay, PATH_MAX, "%s/poll_delay", path); handlers->poll_fd = input_fd; handlers->data = (void *) data; @@ -149,12 +150,12 @@ int bmp180_deactivate(struct smdk4x12_sensors_handlers *handlers) return 0; } -int bmp180_set_delay(struct smdk4x12_sensors_handlers *handlers, long int delay) +int bmp180_set_delay(struct smdk4x12_sensors_handlers *handlers, int64_t delay) { struct bmp180_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; |