summaryrefslogtreecommitdiffstats
path: root/sensors/bmp180.c
diff options
context:
space:
mode:
Diffstat (limited to 'sensors/bmp180.c')
-rw-r--r--sensors/bmp180.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sensors/bmp180.c b/sensors/bmp180.c
index cae97fb..1054e55 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>
@@ -150,12 +151,12 @@ int bmp180_deactivate(struct smdk4210_sensors_handlers *handlers)
return 0;
}
-int bmp180_set_delay(struct smdk4210_sensors_handlers *handlers, long int delay)
+int bmp180_set_delay(struct smdk4210_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;