diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2010-07-11 15:39:11 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-22 18:38:28 (GMT) |
commit | 7b2c33b11ef003d83c87a58201ff42313e13eff4 (patch) | |
tree | 15a38e57525a000767840fe769d2270fe76bda8c /drivers/staging/iio/gyro/adis16260_ring.c | |
parent | c3db00cc80cf01f9a2033c3f3eb03345d0024761 (diff) | |
download | linux-fsl-qoriq-7b2c33b11ef003d83c87a58201ff42313e13eff4.tar.xz |
staging: iio: remove timestamp field from trigger and pass instead through pollfuncs
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/gyro/adis16260_ring.c')
-rw-r--r-- | drivers/staging/iio/gyro/adis16260_ring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/iio/gyro/adis16260_ring.c b/drivers/staging/iio/gyro/adis16260_ring.c index 05e7a69..97d7660 100644 --- a/drivers/staging/iio/gyro/adis16260_ring.c +++ b/drivers/staging/iio/gyro/adis16260_ring.c @@ -59,10 +59,10 @@ static struct attribute_group adis16260_scan_el_group = { * adis16260_poll_func_th() top half interrupt handler called by trigger * @private_data: iio_dev **/ -static void adis16260_poll_func_th(struct iio_dev *indio_dev) +static void adis16260_poll_func_th(struct iio_dev *indio_dev, s64 time) { struct adis16260_state *st = iio_dev_get_devdata(indio_dev); - st->last_timestamp = indio_dev->trig->timestamp; + st->last_timestamp = time; schedule_work(&st->work_trigger_to_ring); } |