]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: tw9910: Replace msleep(1) with usleep_range
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Fri, 2 Mar 2018 14:46:37 +0000 (09:46 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 16:57:16 +0000 (11:57 -0500)
commit7bd8c4f2e8006972c8d4b17f5c5b632334912980
tree5218439eb69ea4145727d5587d5ad9bc8319cfc4
parent7470230a43c5a60a8c9d8d89000f401197ea6d64
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>
drivers/media/i2c/tw9910.c