iio: imu: inv_mpu6050: replace timestamp fifo by generic timestamp
authorJean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Tue, 22 May 2018 14:18:18 +0000 (16:18 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 10 Jun 2018 10:52:28 +0000 (11:52 +0100)
commit3ca4fb431b83faaeb9476d10f394882e135a3d83
treebb81dae6a19afd7ce4ca91ddfb46904fe2bb2638
parentc2c8406b315f7606175b85e9ac1b4fc0972c917f
iio: imu: inv_mpu6050: replace timestamp fifo by generic timestamp

Using a fifo for storing timestamps is useless since the interrupt
is in one-shot mode, preventing the hard irq handler to be called
when the irq thread is running. Instead use the generic timestamp
function iio_pollfunc_store_time.

Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c