Skip to content

Commit dc54392

Browse files
author
Lee Jones
committed
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 <[email protected]>
1 parent 01a0f4a commit dc54392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/88pm805.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static int device_irq_init_805(struct pm80x_chip *chip)
158158
* PM805_INT_STATUS is under 32K clock domain, so need to
159159
* add proper delay before the next I2C register access.
160160
*/
161-
msleep(1);
161+
usleep_range(1000, 3000);
162162

163163
if (ret < 0)
164164
goto out;

0 commit comments

Comments
 (0)