iio: imu: inv_mpu6050: better fifo overflow handling
authorJean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Tue, 22 May 2018 14:18:21 +0000 (16:18 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 10 Jun 2018 10:52:30 +0000 (11:52 +0100)
commitf5057e7b2dba4c33ed293196d75cb139d5014715
treea5cda44fee4653684c36cec3851ede0839a98291
parent5cba7caaacfb842c4326959315f2817897711f53
iio: imu: inv_mpu6050: better fifo overflow handling

Use fifo overflow bit from int status rather than using an
arbitrary threshold.

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_iio.h
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c