projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf9d87
)
iio:ad7266: Use iio_push_to_buffers_with_timestamp()
author
Lars-Peter Clausen
<lars@metafoo.de>
Thu, 19 Sep 2013 12:59:00 +0000
(13:59 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 21 Sep 2013 18:23:51 +0000
(19:23 +0100)
Makes the code a bit shorter and less ugly.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad7266.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/adc/ad7266.c
b/drivers/iio/adc/ad7266.c
index c304966a4f6092c8741ea7a3361cc2dec5edb906..656aa3e102f288ffa0cba17086f695dbb011e1e9 100644
(file)
--- a/
drivers/iio/adc/ad7266.c
+++ b/
drivers/iio/adc/ad7266.c
@@
-96,9
+96,8
@@
static irqreturn_t ad7266_trigger_handler(int irq, void *p)
ret = spi_read(st->spi, st->data, 4);
if (ret == 0) {
- if (indio_dev->scan_timestamp)
- ((s64 *)st->data)[1] = pf->timestamp;
- iio_push_to_buffers(indio_dev, st->data);
+ iio_push_to_buffers_with_timestamp(indio_dev, st->data,
+ pf->timestamp);
}
iio_trigger_notify_done(indio_dev->trig);