diff options
author | Aniroop Mathur <a.mathur@samsung.com> | 2016-11-26 04:47:26 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-12-03 09:58:40 +0100 |
commit | 071cf2494361fd856f1a6781f9c554da67e35e3c (patch) | |
tree | 173b553342e17952c5c58dbefe779537608ef07f /drivers/iio/adc/ti-ads7950.c | |
parent | iio: adis16203: Fix copyright year (diff) | |
download | linux-071cf2494361fd856f1a6781f9c554da67e35e3c.tar.xz linux-071cf2494361fd856f1a6781f9c554da67e35e3c.zip |
IIO: Change msleep to usleep_range for small msecs
msleep(1~20) may not do what the caller intends, and will often sleep longer.
(~20 ms actual sleep for any value given in the 1~20ms range)
This is not the desired behaviour for many cases like device resume time,
device suspend time, device enable time, data reading time, etc.
Thus, change msleep to usleep_range for precise wakeups.
Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/ti-ads7950.c')
0 files changed, 0 insertions, 0 deletions