diff options
author | Shraddha Barke <shraddha.6596@gmail.com> | 2015-09-13 22:46:06 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-14 08:50:44 -0700 |
commit | 046225e79995482e96560c3b4390be4d83f490bf (patch) | |
tree | 82f5945341e65b784f68e1a6b37d79c58e137f69 | |
parent | 52a59cf1e74441d95174e607836ee76aa956e4cc (diff) | |
download | linux-046225e79995482e96560c3b4390be4d83f490bf.tar.gz linux-046225e79995482e96560c3b4390be4d83f490bf.tar.bz2 linux-046225e79995482e96560c3b4390be4d83f490bf.zip |
Staging: ft1000: use usleep_range()
This patch fixes checkpatch.pl warning
WARNING : msleep < 20ms can sleep for up to 20ms; see
Documentation/timers/timers-howto.txt
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_download.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c index 297b7aece506..cf850212f4b6 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c @@ -131,7 +131,7 @@ static int check_usb_db(struct ft1000_usb *ft1000dev) break; } loopcnt++; - msleep(10); + usleep_range(10000, 11000); } @@ -142,7 +142,7 @@ static int check_usb_db(struct ft1000_usb *ft1000dev) pr_debug("Doorbell = 0x%x\n", temp); if (temp & 0x8000) { loopcnt++; - msleep(10); + usleep_range(10000, 11000); } else { pr_debug("door bell is cleared, return 0\n"); return 0; @@ -191,7 +191,7 @@ static u16 get_handshake(struct ft1000_usb *ft1000dev, u16 expected_value) return handshake; } loopcnt++; - msleep(10); + usleep_range(10000, 11000); } return HANDSHAKE_TIMEOUT_VALUE; @@ -254,7 +254,7 @@ static u16 get_handshake_usb(struct ft1000_usb *ft1000dev, u16 expected_value) } loopcnt++; - msleep(10); + usleep_range(10000, 11000); handshake = ntohs(handshake); if ((handshake == expected_value) || (handshake == HANDSHAKE_RESET_VALUE_USB)) |