diff options
author | Jonathan Cameron | 2010-07-29 18:50:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2010-08-03 02:06:03 +0200 |
commit | b98c9e60a44645737fa2ffef9a2d1ef2243c50d5 (patch) | |
tree | 007822fa9ada863007c195152dd303cecf766d0f /drivers/staging/iio/accel/lis3l02dq.h | |
parent | staging: iio: iio_sw_ring_helper_state - add dummy case for no buffer builds. (diff) | |
download | kernel-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.h | 2 |
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; |