staging: iio: fix typo, improve timestamp alignment comment
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
970689f10e
commit
8b32b11c2e
|
@ -83,7 +83,7 @@ static irqreturn_t iio_simple_dummy_trigger_h(int irq, void *p)
|
|||
len += 2;
|
||||
}
|
||||
}
|
||||
/* Store a timestampe at an 8 byte boundary */
|
||||
/* Store the timestamp at an 8 byte aligned offset */
|
||||
if (indio_dev->scan_timestamp)
|
||||
*(s64 *)((phys_addr_t)data + ALIGN(len, sizeof(s64)))
|
||||
= iio_get_time_ns();
|
||||
|
|
Loading…
Reference in New Issue