mirror of
https://github.com/torvalds/linux
synced 2024-10-19 17:58:44 +00:00
staging: ft1000-usb: use usleep_range instead of msleep
This fixes the following checkpatch.pl warning: WARNING : msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt Signed-off-by: Catalina Mocanu <catalina.mocanu@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ed9034f58e
commit
c0a7b1cbbf
|
@ -41,7 +41,7 @@ static int ft1000_poll_thread(void *arg)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
while (!kthread_should_stop()) {
|
while (!kthread_should_stop()) {
|
||||||
msleep(10);
|
usleep_range(10000, 11000);
|
||||||
if (!gPollingfailed) {
|
if (!gPollingfailed) {
|
||||||
ret = ft1000_poll(arg);
|
ret = ft1000_poll(arg);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
|
|
Loading…
Reference in a new issue