summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/ab8500-gpadc.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2011-08-29 08:32:36 +0200
committerLee Jones <lee.jones@linaro.org>2013-02-04 08:31:28 +0000
commitd0b32fa1e12a6fafbdf4fb142311a36f5314a6ff (patch)
tree9911c3b92d9540ff8a1da41fd9d156666e28ba52 /drivers/mfd/ab8500-gpadc.c
parent5a4bac6e6331feb0edd9522f3c7bbb9a01571566 (diff)
mfd: ab8500-gpadc: Change to usleep_range() for greater resolution
The resolution of msleep is related to HZ, so with HZ set to 100 any msleep of less than 10ms will become ~10ms. Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/ab8500-gpadc.c')
-rw-r--r--drivers/mfd/ab8500-gpadc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ab8500-gpadc.c b/drivers/mfd/ab8500-gpadc.c
index 3fb1f40d638..bc0daf3bc93 100644
--- a/drivers/mfd/ab8500-gpadc.c
+++ b/drivers/mfd/ab8500-gpadc.c
@@ -344,7 +344,7 @@ int ab8500_gpadc_read_raw(struct ab8500_gpadc *gpadc, u8 channel)
* Delay might be needed for ABB8500 cut 3.0, if not, remove
* when hardware will be available
*/
- msleep(1);
+ usleep_range(1000, 1000);
break;
}
/* Intentional fallthrough */