projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edde945
)
drivers/iio/gyro/mpu3050-core.c: This patch fix the following checkpatch warning.
author
Mohan Kumar
<mohankumar718@gmail.com>
Sun, 14 Apr 2019 15:53:38 +0000
(18:53 +0300)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Mon, 22 Apr 2019 10:34:14 +0000
(11:34 +0100)
As per Documentation/timers/timers-howto.txt Msleep < 20ms can sleep for
up to 20ms. so use usleep_range.
Signed-off-by: Mohan Kumar <mohankumar718@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/mpu3050-core.c
patch
|
blob
|
history
diff --git
a/drivers/iio/gyro/mpu3050-core.c
b/drivers/iio/gyro/mpu3050-core.c
index
8200e48
..
496ed4c
100644
(file)
--- a/
drivers/iio/gyro/mpu3050-core.c
+++ b/
drivers/iio/gyro/mpu3050-core.c
@@
-864,7
+864,7
@@
static int mpu3050_power_up(struct mpu3050 *mpu3050)
dev_err(mpu3050->dev, "error setting power mode\n");
return ret;
}
-
msleep(1
0);
+
usleep_range(10000, 2000
0);
return 0;
}