iio: accel: kxsd9: Fix scaling bug
[pandora-kernel.git] / drivers / staging / iio / chrdev.h
1 /* The industrial I/O core - character device related
2  *
3  * Copyright (c) 2008 Jonathan Cameron
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published by
7  * the Free Software Foundation.
8  */
9
10 #ifndef _IIO_CHRDEV_H_
11 #define _IIO_CHRDEV_H_
12
13 /**
14  * struct iio_event_data - The actual event being pushed to userspace
15  * @id:         event identifier
16  * @timestamp:  best estimate of time of event occurrence (often from
17  *              the interrupt handler)
18  */
19 struct iio_event_data {
20         u64     id;
21         s64     timestamp;
22 };
23
24 #define IIO_GET_EVENT_FD_IOCTL _IOR('i', 0x90, int)
25 #endif