projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a4bac6
)
mfd: ab8500-gpadc: Change to usleep_range() for greater resolution
author
Lee Jones
<lee.jones@linaro.org>
Mon, 29 Aug 2011 06:32:36 +0000
(08:32 +0200)
committer
Lee Jones
<lee.jones@linaro.org>
Mon, 4 Feb 2013 08:31:28 +0000
(08:31 +0000)
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>
drivers/mfd/ab8500-gpadc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/ab8500-gpadc.c
b/drivers/mfd/ab8500-gpadc.c
index 3fb1f40d6389235e45b35aec393b4bf606a1979c..bc0daf3bc93aa7a80ff77ae34b20d2ad1f235e60 100644
(file)
--- 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 */