Hi,

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

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

--- 2.6.11-rc3-kj-v/drivers/usb/misc/usblcd.c   2005-02-03 16:57:40.000000000 
-0800
+++ 2.6.11-rc3-kj/drivers/usb/misc/usblcd.c     2005-02-08 14:21:08.000000000 
-0800
@@ -144,7 +144,7 @@ write_lcd(struct file *file, const char 
 
                        result = usb_bulk_msg(lcd->lcd_dev,
                                         usb_sndbulkpipe(lcd->lcd_dev, 1),
-                                        obuf, thistime, &partial, 10 * HZ);
+                                        obuf, thistime, &partial, 10000);
 
                        dbg("write stats: result:%d thistime:%lu partial:%u",
                             result, thistime, partial);
@@ -203,7 +203,7 @@ read_lcd(struct file *file, char __user 
                result = usb_bulk_msg(lcd->lcd_dev,
                                      usb_rcvbulkpipe(lcd->lcd_dev, 0),
                                      ibuf, this_read, &partial,
-                                     (int) (HZ * 8));
+                                     8000);
 
                dbg(KERN_DEBUG "read stats: result:%d this_read:%u partial:%u",
                       result, this_read, partial);


-------------------------------------------------------
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_id=6595&alloc_id=14396&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