staging:iio:adxrs450: Use usleep_range for the sequential transfer dealy
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 31 Jan 2013 14:27:00 +0000 (14:27 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 2 Feb 2013 09:22:48 +0000 (09:22 +0000)
commit619036e216ce4d34f6d51ad2cf50380a54734c18
treee7cf948d51c98bd25259ad795c7ddca116d4a546
parent457b71df27e4e6125b6627ad3d4ae1da023fc908
staging:iio:adxrs450: Use usleep_range for the sequential transfer dealy

The adxrs450 requires a delay of at least 0.1 ms between register writes.  Using
msleep() for such small delays is not recommended. So use usleep_range instead.

Fixes the following checkpatch warning:
WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
+ msleep(1);

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/gyro/adxrs450_core.c