ChangeSet 1.2020.1.98, 2005/03/08 00:22:07-08:00, [EMAIL PROTECTED]

[PATCH] usb/whiteheat: change parameters of usb_{control,bulk}_msg() to msecs

Change units of parameters being passed to usb_{control,bulk}_msg() to
milliseconds. Patch is compile-tested.

Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/serial/whiteheat.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


diff -Nru a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c
--- a/drivers/usb/serial/whiteheat.c    2005-03-08 16:45:45 -08:00
+++ b/drivers/usb/serial/whiteheat.c    2005-03-08 16:45:45 -08:00
@@ -254,6 +254,7 @@
 
 #define COMMAND_PORT           4
 #define COMMAND_TIMEOUT                (2*HZ)  /* 2 second timeout for a 
command */
+#define        COMMAND_TIMEOUT_MS      2000
 #define CLOSING_DELAY          (30 * HZ)
 
 
@@ -379,7 +380,7 @@
          * unlinking bug in disguise. Same for the call below.
          */
        usb_clear_halt(serial->dev, pipe);
-       ret = usb_bulk_msg (serial->dev, pipe, command, 2, &alen, 
COMMAND_TIMEOUT);
+       ret = usb_bulk_msg (serial->dev, pipe, command, 2, &alen, 
COMMAND_TIMEOUT_MS);
        if (ret) {
                err("%s: Couldn't send command [%d]", serial->type->name, ret);
                goto no_firmware;
@@ -391,7 +392,7 @@
        pipe = usb_rcvbulkpipe (serial->dev, 
command_port->bulk_in_endpointAddress);
        /* See the comment on the usb_clear_halt() above */
        usb_clear_halt(serial->dev, pipe);
-       ret = usb_bulk_msg (serial->dev, pipe, result, sizeof(*hw_info) + 1, 
&alen, COMMAND_TIMEOUT);
+       ret = usb_bulk_msg (serial->dev, pipe, result, sizeof(*hw_info) + 1, 
&alen, COMMAND_TIMEOUT_MS);
        if (ret) {
                err("%s: Couldn't get results [%d]", serial->type->name, ret);
                goto no_firmware;



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to