public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Iker Pedrosa <ikerpedrosam@gmail.com>
To: pavel@ucw.cz
Cc: gregkh@linuxfoundation.org, justinmattock@gmail.com,
	ikerpedrosam@gmail.com, mujeeb.adil@gmail.com,
	harsh1kumar@gmail.com, devel@driverdev.osuosl.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 1/6] Staging: winbond: wb35reg: changed sleep function from msleep to usleep
Date: Mon,  5 Aug 2013 11:58:27 +0200	[thread overview]
Message-ID: <1375696712-5276-2-git-send-email-ikerpedrosam@gmail.com> (raw)
In-Reply-To: <1375696712-5276-1-git-send-email-ikerpedrosam@gmail.com>

Changed sleep function from msleep to usleep according to the documentation.

Signed-off-by: Iker Pedrosa <ikerpedrosam@gmail.com>
---
 drivers/staging/winbond/wb35reg.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/winbond/wb35reg.c b/drivers/staging/winbond/wb35reg.c
index 9be1b3b..34a2618 100644
--- a/drivers/staging/winbond/wb35reg.c
+++ b/drivers/staging/winbond/wb35reg.c
@@ -134,7 +134,7 @@ unsigned char Wb35Reg_WriteSync(struct hw_data *pHwData, u16 RegisterNo, u32 Reg
 
 	/* Wait until EP0VM stop */
 	while (reg->EP0vm_state != VM_STOP)
-		msleep(10);
+		usleep(10000);
 
 	/* Sync IoCallDriver */
 	reg->EP0vm_state = VM_RUNNING;
@@ -301,7 +301,7 @@ unsigned char Wb35Reg_ReadSync(struct hw_data *pHwData, u16 RegisterNo, u32 *pRe
 
 	/* Wait until EP0VM stop */
 	while (reg->EP0vm_state != VM_STOP)
-		msleep(10);
+		usleep(10000);
 
 	reg->EP0vm_state = VM_RUNNING;
 	ret = usb_control_msg(pHwData->udev,
@@ -501,9 +501,9 @@ void Wb35Reg_destroy(struct hw_data *pHwData)
 
 	/* Wait for Reg operation completed */
 	do {
-		msleep(10); /* Delay for waiting function enter */
+		usleep(10000); /* Delay for waiting function enter */
 	} while (reg->EP0vm_state != VM_STOP);
-	msleep(10);  /* Delay for waiting function enter */
+	usleep(10000);  /* Delay for waiting function enter */
 
 	/* Release all the data in RegQueue */
 	spin_lock_irq(&reg->EP0VM_spin_lock);
-- 
1.8.1.2


  reply	other threads:[~2013-08-05  9:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-05  9:58 [PATCH 0/6] Staging: winbond: Fixed some coding style issues Iker Pedrosa
2013-08-05  9:58 ` Iker Pedrosa [this message]
2013-08-12 10:05   ` [PATCH 1/6] Staging: winbond: wb35reg: changed sleep function from msleep to usleep Pavel Machek
2013-08-16 11:41     ` Iker Pedrosa
2013-08-05  9:58 ` [PATCH 2/6] Staging: winbond: wb35reg: white space deleted Iker Pedrosa
2013-08-12 10:05   ` Pavel Machek
2013-08-05  9:58 ` [PATCH 3/6] Staging: winbond: wb35reg: avoided use of extern function Iker Pedrosa
2013-08-12 10:05   ` Pavel Machek
2013-08-05  9:58 ` [PATCH 4/6] Staging: winbond: mds: fixed some lines over 80 characters Iker Pedrosa
2013-08-12 10:06   ` Pavel Machek
2013-08-05  9:58 ` [PATCH 5/6] Staging: winbond: mds_f: fixed " Iker Pedrosa
2013-08-12 10:06   ` Pavel Machek
2013-08-05  9:58 ` [PATCH 6/6] Staging: winbond: mds_f: deleted extern function Iker Pedrosa
2013-08-12 10:07   ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1375696712-5276-2-git-send-email-ikerpedrosam@gmail.com \
    --to=ikerpedrosam@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=harsh1kumar@gmail.com \
    --cc=justinmattock@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mujeeb.adil@gmail.com \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox