mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
drivers/video/backlight/da9052_bl.c: use usleep_range() instead of msleep() for small sleeps
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]>
This commit is contained in:
parent
055e72fe62
commit
5333e254ab
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ static int da9052_adjust_wled_brightness(struct da9052_bl *wleds)
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
msleep(10);
|
||||
usleep_range(10000, 11000);
|
||||
|
||||
if (wleds->brightness) {
|
||||
ret = da9052_reg_write(wleds->da9052, wled_bank[wleds->led_reg],
|
||||
|
|
|
|||
Loading…
Reference in a new issue