staging: ft1000-usb: use usleep_range instead of msleep
authorCatalina Mocanu <catalina.mocanu@gmail.com>
Wed, 24 Sep 2014 20:54:15 +0000 (13:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:05:03 +0000 (23:05 -0400)
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>
drivers/staging/ft1000/ft1000-usb/ft1000_usb.c

index 2d6d79c10d6ce27f52202dcd7a4e4332d921d955..39be30c0eedf90f556b73f3751d3c3eb50781692 100644 (file)
@@ -41,7 +41,7 @@ static int ft1000_poll_thread(void *arg)
        int ret;
 
        while (!kthread_should_stop()) {
-               msleep(10);
+               usleep_range(10000, 11000);
                if (!gPollingfailed) {
                        ret = ft1000_poll(arg);
                        if (ret != 0) {