linux_dsm_epyc7002/drivers/iio/imu/bmi160
Martin Kelly 0a3f50e4d6 iio:bmi160: use iio_pollfunc_store_time
Currently, we snap the timestamp after reading from the buffer and
processing the event. When the IIO poll function is triggered by an
interrupt,  we can get a slightly more accurate timestamp by snapping it
prior to reading the data, since the data was already generated prior to
entering the trigger handler. This is not going to make a huge difference,
but we might as well improve slightly.

Do this by using iio_pollfunc_store_time as other drivers do.

Signed-off-by: Martin Kelly <martin@martingkelly.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-02-09 15:24:27 +00:00
..
bmi160_core.c iio:bmi160: use iio_pollfunc_store_time 2019-02-09 15:24:27 +00:00
bmi160_i2c.c iio:bmi160: add SPDX identifiers 2019-02-09 14:48:33 +00:00
bmi160_spi.c iio:bmi160: add SPDX identifiers 2019-02-09 14:48:33 +00:00
bmi160.h iio:bmi160: add drdy interrupt support 2019-02-09 15:14:42 +00:00
Kconfig iio: imu: Add initial support for Bosch BMI160 2016-04-16 13:39:21 +01:00
Makefile iio: imu: Add initial support for Bosch BMI160 2016-04-16 13:39:21 +01:00