ChangeSet 1.2020.1.104, 2005/03/08 00:24:43-08:00, [EMAIL PROTECTED]

[PATCH] w1/dscore: 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/w1/dscore.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


diff -Nru a/drivers/w1/dscore.c b/drivers/w1/dscore.c
--- a/drivers/w1/dscore.c       2005-03-08 16:45:04 -08:00
+++ b/drivers/w1/dscore.c       2005-03-08 16:45:04 -08:00
@@ -81,7 +81,7 @@
        int err;
        
        err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 
dev->ep[EP_CONTROL]), 
-                       CONTROL_CMD, 0x40, value, index, NULL, 0, HZ);
+                       CONTROL_CMD, 0x40, value, index, NULL, 0, 1000);
        if (err < 0) {
                printk(KERN_ERR "Failed to send command control message %x.%x: 
err=%d.\n", 
                                value, index, err);
@@ -96,7 +96,7 @@
        int err;
        
        err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 
dev->ep[EP_CONTROL]), 
-                       MODE_CMD, 0x40, value, index, NULL, 0, HZ);
+                       MODE_CMD, 0x40, value, index, NULL, 0, 1000);
        if (err < 0) {
                printk(KERN_ERR "Failed to send mode control message %x.%x: 
err=%d.\n", 
                                value, index, err);
@@ -111,7 +111,7 @@
        int err;
        
        err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 
dev->ep[EP_CONTROL]), 
-                       COMM_CMD, 0x40, value, index, NULL, 0, HZ);
+                       COMM_CMD, 0x40, value, index, NULL, 0, 1000);
        if (err < 0) {
                printk(KERN_ERR "Failed to send control message %x.%x: 
err=%d.\n", 
                                value, index, err);
@@ -210,7 +210,7 @@
        
        count = 0;
        err = usb_bulk_msg(dev->udev, usb_rcvbulkpipe(dev->udev, 
dev->ep[EP_DATA_IN]), 
-                               buf, size, &count, HZ);
+                               buf, size, &count, 1000);
        if (err < 0) {
                printk(KERN_INFO "Clearing ep0x%x.\n", dev->ep[EP_DATA_IN]);
                usb_clear_halt(dev->udev, usb_rcvbulkpipe(dev->udev, 
dev->ep[EP_DATA_IN]));
@@ -236,7 +236,7 @@
        int count, err;
        
        count = 0;
-       err = usb_bulk_msg(dev->udev, usb_sndbulkpipe(dev->udev, 
dev->ep[EP_DATA_OUT]), buf, len, &count, HZ);
+       err = usb_bulk_msg(dev->udev, usb_sndbulkpipe(dev->udev, 
dev->ep[EP_DATA_OUT]), buf, len, &count, 1000);
        if (err < 0) {
                printk(KERN_ERR "Failed to read 1-wire data from 0x02: 
err=%d.\n", err);
                return err;



-------------------------------------------------------
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
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to