summaryrefslogtreecommitdiff
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo+renesas@jmondi.org>2018-03-02 09:46:37 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-06 11:57:16 -0500
commit7bd8c4f2e8006972c8d4b17f5c5b632334912980 (patch)
tree5218439eb69ea4145727d5587d5ad9bc8319cfc4 /drivers/media/i2c
parent7470230a43c5a60a8c9d8d89000f401197ea6d64 (diff)
media: tw9910: Replace msleep(1) with usleep_range
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>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/tw9910.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/tw9910.c b/drivers/media/i2c/tw9910.c
index 1fbed4432e36..a54548cc4285 100644
--- 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)