This is an automatic generated email to let you know that the following patch were queued:
Subject: media: ov772x: Replace msleep(1) with usleep_range Author: Jacopo Mondi <[email protected]> Date: Fri Mar 2 09:46:42 2018 -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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> drivers/media/i2c/ov772x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov772x.c index 093a8040cfd2..7fdf54e57ce0 100644 --- a/drivers/media/i2c/ov772x.c +++ b/drivers/media/i2c/ov772x.c @@ -574,7 +574,7 @@ static int ov772x_reset(struct i2c_client *client) if (ret < 0) return ret; - msleep(1); + usleep_range(1000, 5000); return ov772x_mask_set(client, COM2, SOFT_SLEEP_MODE, SOFT_SLEEP_MODE); } _______________________________________________ linuxtv-commits mailing list [email protected] https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
