Commit 65d5ff8d authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Greg Kroah-Hartman

staging:iio: Use userspace types for iio_event_data

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: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent af5046af
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#define _IIO_EVENTS_H_ #define _IIO_EVENTS_H_
#include <linux/ioctl.h> #include <linux/ioctl.h>
#include <linux/types.h>
#include "types.h" #include "types.h"
/** /**
...@@ -19,8 +20,8 @@ ...@@ -19,8 +20,8 @@
* the interrupt handler) * the interrupt handler)
*/ */
struct iio_event_data { struct iio_event_data {
u64 id; __u64 id;
s64 timestamp; __s64 timestamp;
}; };
#define IIO_GET_EVENT_FD_IOCTL _IOR('i', 0x90, int) #define IIO_GET_EVENT_FD_IOCTL _IOR('i', 0x90, int)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment