lkml.org 
[lkml]   [2013]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/6] Staging: winbond: wb35reg: changed sleep function from msleep to usleep
Date
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


\
 
 \ /
  Last update: 2013-08-05 12:21    [W:0.083 / U:6.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site