Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: 88pm805: msleep(1ms ~ 20ms) may not do what the caller intends

This code has been working since 2012, as limiting the time between
1ms and 3ms is unlikely to do any harm.

Soothes checkpatch warning:

WARNING: msleep < 20ms can sleep for up to 20ms;
see Documentation/timers/timers-howto.txt
#161: FILE: drivers/mfd/88pm805.c:161:
+ msleep(1);

Signed-off-by: Lee Jones <lee.jones@linaro.org>

Lee Jones dc543929 01a0f4aa

+1 -1
+1 -1
drivers/mfd/88pm805.c
··· 158 158 * PM805_INT_STATUS is under 32K clock domain, so need to 159 159 * add proper delay before the next I2C register access. 160 160 */ 161 - msleep(1); 161 + usleep_range(1000, 3000); 162 162 163 163 if (ret < 0) 164 164 goto out;