summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/accel/lis3l02dq.h
diff options
context:
space:
mode:
authorJonathan Cameron2010-07-29 18:50:47 +0200
committerGreg Kroah-Hartman2010-08-03 02:06:03 +0200
commitb98c9e60a44645737fa2ffef9a2d1ef2243c50d5 (patch)
tree007822fa9ada863007c195152dd303cecf766d0f /drivers/staging/iio/accel/lis3l02dq.h
parentstaging: iio: iio_sw_ring_helper_state - add dummy case for no buffer builds. (diff)
downloadkernel-qcow2-linux-b98c9e60a44645737fa2ffef9a2d1ef2243c50d5.tar.gz
kernel-qcow2-linux-b98c9e60a44645737fa2ffef9a2d1ef2243c50d5.tar.xz
kernel-qcow2-linux-b98c9e60a44645737fa2ffef9a2d1ef2243c50d5.zip
staging: iio: lis3l02dq add a thresh_timestamp field to state for no ring case
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/accel/lis3l02dq.h')
-rw-r--r--drivers/staging/iio/accel/lis3l02dq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/iio/accel/lis3l02dq.h b/drivers/staging/iio/accel/lis3l02dq.h
index 44669ee10671..6e730553fca8 100644
--- a/drivers/staging/iio/accel/lis3l02dq.h
+++ b/drivers/staging/iio/accel/lis3l02dq.h
@@ -151,6 +151,7 @@ Form of high byte dependant on justification set in ctrl reg */
* @helper: data and func pointer allowing generic functions
* @us: actual spi_device
* @work_thresh: bh for threshold events
+ * @thresh_timestamp: timestamp for threshold interrupts.
* @inter: used to check if new interrupt has been triggered
* @trig: data ready trigger registered with iio
* @tx: transmit buffer
@@ -161,6 +162,7 @@ struct lis3l02dq_state {
struct iio_sw_ring_helper_state help;
struct spi_device *us;
struct work_struct work_thresh;
+ s64 thresh_timestamp;
bool inter;
struct iio_trigger *trig;
u8 *tx;