driver, iio, mpuxxx: do nothing when fifo count is zero
authorZorro Liu <lyx@rock-chips.com>
Fri, 17 Jun 2016 03:43:19 +0000 (11:43 +0800)
committerZorro Liu <lyx@rock-chips.com>
Sat, 18 Jun 2016 10:03:25 +0000 (18:03 +0800)
commit98827e305e4c13add79acbfc58f15bd96c09cc92
tree43f48ea8fbb9bfd2b245fb6622fe0463b9a7cbb1
parent0497b48af6860ad3c10ce94761758cbb6e7f9b51
driver, iio, mpuxxx: do nothing when fifo count is zero

if fifo count is zero, just wait for data ready, there is
no need to reset HW and SW fifo, or things may worse

Change-Id: Ie65cdfde9c4939be772861f5c0842fb66c384827
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
drivers/staging/iio/imu/inv_mpu/inv_mpu_ring.c