projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f4fa4f
)
iio:ad_sigma_delta: 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:54 +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/ad_sigma_delta.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/ad_sigma_delta.c
b/drivers/iio/adc/ad_sigma_delta.c
index 78d276f40c8e133fa012761301e993451e30259e..2b59112747633b0a9f8cec683d6f94336fc06efd 100644
(file)
--- a/
drivers/iio/adc/ad_sigma_delta.c
+++ b/
drivers/iio/adc/ad_sigma_delta.c
@@
-368,10
+368,6
@@
static irqreturn_t ad_sd_trigger_handler(int irq, void *p)
memset(data, 0x00, 16);
- /* Guaranteed to be aligned with 8 byte boundary */
- if (indio_dev->scan_timestamp)
- ((s64 *)data)[1] = pf->timestamp;
-
reg_size = indio_dev->channels[0].scan_type.realbits +
indio_dev->channels[0].scan_type.shift;
reg_size = DIV_ROUND_UP(reg_size, 8);
@@
-391,7
+387,7
@@
static irqreturn_t ad_sd_trigger_handler(int irq, void *p)
break;
}
- iio_push_to_buffers
(indio_dev, data
);
+ iio_push_to_buffers
_with_timestamp(indio_dev, data, pf->timestamp
);
iio_trigger_notify_done(indio_dev->trig);
sigma_delta->irq_dis = false;