mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
iio staging: fix cast warning
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
795876238f
commit
be344c84c2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue