summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2012-07-14 17:23:00 +0100
committerJonathan Cameron <jic23@kernel.org>2012-07-15 17:33:17 +0100
commitbe344c84c2d805378f410929b2eb0a538b4206e2 (patch)
tree415f975ba3e4ffbd12bb81f655043d8054cc708f
parent795876238f127089d96f268e2639eb0f56ec1a91 (diff)
iio staging: fix cast warning
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/staging/iio/iio_simple_dummy_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/iio_simple_dummy_buffer.c b/drivers/staging/iio/iio_simple_dummy_buffer.c
index c0951f9f8a2f..bd628de472a9 100644
--- a/drivers/staging/iio/iio_simple_dummy_buffer.c
+++ b/drivers/staging/iio/iio_simple_dummy_buffer.c
@@ -85,7 +85,7 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p)
}
/* Store the timestamp at an 8 byte aligned offset */
if (indio_dev->scan_timestamp)
- *(s64 *)((phys_addr_t)data + ALIGN(len, sizeof(s64)))
+ *(s64 *)((u8 *)data + ALIGN(len, sizeof(s64)))
= iio_get_time_ns();
buffer->access->store_to(buffer, (u8 *)data, pf->timestamp);