From: Catalina Mocanu Date: Wed, 24 Sep 2014 20:54:15 +0000 (-0700) Subject: staging: ft1000-usb: use usleep_range instead of msleep X-Git-Tag: v5.15~17125^2~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0a7b1cbbf806e32278795893087047ed28f2a5b;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c index 2d6d79c..39be30c 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c @@ -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) {