staging:iio: Use userspace types for iio_event_data
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 26 Oct 2011 16:41:33 +0000 (17:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:35:04 +0000 (16:35 -0800)
Since we want to export struct iio_event_data to userspace use the userspace
integer types. Also add a include to linux/types.h.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/events.h

index 08cf3d1a38bf58a8599b663235d048384dce7df4..389c7810b66b6333c8fbdb2240f83619ab5aaf69 100644 (file)
@@ -10,6 +10,7 @@
 #define _IIO_EVENTS_H_
 
 #include <linux/ioctl.h>
+#include <linux/types.h>
 #include "types.h"
 
 /**
@@ -19,8 +20,8 @@
  *             the interrupt handler)
  */
 struct iio_event_data {
-       u64     id;
-       s64     timestamp;
+       __u64   id;
+       __s64   timestamp;
 };
 
 #define IIO_GET_EVENT_FD_IOCTL _IOR('i', 0x90, int)