iio: inv_mpu6050: Clear timestamps fifo while resetting hardware fifo
authorViorel Suman <viorel.suman@gmail.com>
Wed, 18 Feb 2015 18:05:21 +0000 (20:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Apr 2015 08:10:49 +0000 (10:10 +0200)
commit9c28f1ed67be192f73a679b53d2306db1459b444
tree55dbbdbf1431fff4c1d574bbf4f5de1f8390d209
parent3e01cca39c3eef60046d0dc922bfe1a275a18f51
iio: inv_mpu6050: Clear timestamps fifo while resetting hardware fifo

commit 4dac0a8eefd55bb1f157d1a5a084531334a2d74c upstream.

A hardware fifo reset always imply an invalidation of the
existing timestamps, so we'll clear timestamps fifo on
successfull hardware fifo reset.

Signed-off-by: Viorel Suman <viorel.suman@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c