diff options
author | Mehdi Djait <[email protected]> | 2023-02-18 14:51:11 +0100 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2023-02-18 17:29:41 +0000 |
commit | 03fada47311a3e668f73efc9278c4a559e64ee85 (patch) | |
tree | 8c5889b28d99a0089acec1a840d1b17f66afd777 /lib/mpi/mpi-mul.c | |
parent | 0c6ef985a1fd8a74dcb5cad941ddcadd55cb8697 (diff) |
iio: accel: kionix-kx022a: Get the timestamp from the driver's private data in the trigger_handler
The trigger_handler gets called from the IRQ thread handler using
iio_trigger_poll_chained() which will only call the bottom half of the
pollfunc and therefore pf->timestamp will not get set.
Use instead the timestamp from the driver's private data which is always
set in the IRQ handler.
Fixes: 7c1d1677b322 ("iio: accel: Support Kionix/ROHM KX022A accelerometer")
Link: https://lore.kernel.org/linux-iio/Y+6QoBLh1k82cJVN@carbian/
Reviewed-by: Matti Vaittinen <[email protected]>
Signed-off-by: Mehdi Djait <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions