projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
055e72f
)
drivers/video/backlight/da9052_bl.c: use usleep_range() instead of msleep() for small...
author
Jingoo Han
<
[email protected]
>
Fri, 5 Oct 2012 00:12:42 +0000
(17:12 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 5 Oct 2012 18:04:52 +0000
(
03:04
+0900)
Since msleep() might not sleep for the desired amount when less than 20ms,
use usleep_range().
Signed-off-by: Jingoo Han <
[email protected]
>
Cc: Ashish Jangam <
[email protected]
>
Cc: Richard Purdie <
[email protected]
>
Cc: Sachin Kamat <
[email protected]
>
Cc: Mark Brown <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/backlight/da9052_bl.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/da9052_bl.c
b/drivers/video/backlight/da9052_bl.c
index b628d68f516284ea69f9ab204532d183d5ce0dc8..10485c927ac65a993c58068737d029e03335a5e9 100644
(file)
--- a/
drivers/video/backlight/da9052_bl.c
+++ b/
drivers/video/backlight/da9052_bl.c
@@
-72,7
+72,7
@@
static int da9052_adjust_wled_brightness(struct da9052_bl *wleds)
if (ret < 0)
return ret;
-
msleep(1
0);
+
usleep_range(10000, 1100
0);
if (wleds->brightness) {
ret = da9052_reg_write(wleds->da9052, wled_bank[wleds->led_reg],