diff options
author | Catalina Mocanu <catalina.mocanu@gmail.com> | 2014-09-24 13:54:15 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-28 23:05:03 -0400 |
commit | c0a7b1cbbf806e32278795893087047ed28f2a5b (patch) | |
tree | b96b26fd2f72c51a83fdc0a7556fdf4244cb6c99 /drivers/staging/ft1000 | |
parent | ed9034f58e75b0f580eb8479ed1a01891191e04b (diff) |
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>
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c index 2d6d79c10d6c..39be30c0eedf 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) { |