Skip to content

Commit

Permalink
staging:iio: Use userspace types for iio_event_data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent af5046a commit 65d5ff8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/staging/iio/events.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define _IIO_EVENTS_H_

#include <linux/ioctl.h>
#include <linux/types.h>
#include "types.h"

/**
Expand All @@ -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)
Expand Down

0 comments on commit 65d5ff8

Please sign in to comment.