]> git.baikalelectronics.ru Git - kernel.git/commit
iio: imu: mpu6050: fix INV_MPU6050_REG_UP_TIME delay
authorMatt Ranostay <matt.ranostay@intel.com>
Mon, 22 Feb 2016 21:39:08 +0000 (13:39 -0800)
committerJonathan Cameron <jic23@kernel.org>
Thu, 25 Feb 2016 19:48:47 +0000 (19:48 +0000)
commit2ebdaa74b037b0cb208ee8967d35a49576339141
tree99586015a5949b0bc912eab83dad3c8e62487d51
parent5c28337fdf875077f263dbc91a82b688d6aa843e
iio: imu: mpu6050: fix INV_MPU6050_REG_UP_TIME delay

replace msleep(INV_MPU6050_REG_UP_TIME) with usleep_range calls
due to fact the wait time is under 20 milliseconds.

Signed-off-by: Matt Ranostay <matt.ranostay@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h