diff options
author | Lee Jones <lee.jones@linaro.org> | 2014-05-08 07:06:19 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-07-09 11:38:02 -0400 |
commit | dc543929217c828fa52bcf48be0508eb5a552bec (patch) | |
tree | 84e71791c17da4eb053f5304caa1cd12fa26e6d7 /drivers | |
parent | 01a0f4aaaefff9f57bb17e6cc514c84ba43a7335 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/88pm805.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c index 64751c2a1ace..e9d50644660c 100644 --- a/drivers/mfd/88pm805.c +++ b/drivers/mfd/88pm805.c | |||
@@ -158,7 +158,7 @@ static int device_irq_init_805(struct pm80x_chip *chip) | |||
158 | * PM805_INT_STATUS is under 32K clock domain, so need to | 158 | * PM805_INT_STATUS is under 32K clock domain, so need to |
159 | * add proper delay before the next I2C register access. | 159 | * add proper delay before the next I2C register access. |
160 | */ | 160 | */ |
161 | msleep(1); | 161 | usleep_range(1000, 3000); |
162 | 162 | ||
163 | if (ret < 0) | 163 | if (ret < 0) |
164 | goto out; | 164 | goto out; |