projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7470230
)
media: tw9910: Replace msleep(1) with usleep_range
author
Jacopo Mondi
<jacopo+renesas@jmondi.org>
Fri, 2 Mar 2018 14:46:37 +0000
(09:46 -0500)
committer
Mauro Carvalho Chehab
<mchehab@s-opensource.com>
Tue, 6 Mar 2018 16:57:16 +0000
(11:57 -0500)
msleep() can sleep up to 20ms.
As suggested by Documentation/timers/timers_howto.txt replace it with
usleep_range() with up to 5ms delay.
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/tw9910.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/tw9910.c
b/drivers/media/i2c/tw9910.c
index 1fbed4432e36b2321e9cd7cfa207c9d2fb8f1190..a54548cc42857f603b619a92be2b2af9973c762c 100644
(file)
--- a/
drivers/media/i2c/tw9910.c
+++ b/
drivers/media/i2c/tw9910.c
@@
-401,7
+401,7
@@
static int tw9910_set_hsync(struct i2c_client *client)
static void tw9910_reset(struct i2c_client *client)
{
tw9910_mask_set(client, ACNTL1, SRESET, SRESET);
-
msleep(1
);
+
usleep_range(1000, 5000
);
}
static int tw9910_power(struct i2c_client *client, int enable)