]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ftdi-elan: Always pass usb_bulk_msg() a timeout in milliseconds.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 29 Sep 2008 17:58:35 +0000 (10:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Oct 2008 21:41:02 +0000 (14:41 -0700)
commit8327301c5280141432bd77d90b6a9ca919928745
tree173018ddaac12eb12a7d001e9802f1346d650364
parent9497300e00a902db953cb64380b1445e526063d6
USB: ftdi-elan: Always pass usb_bulk_msg() a timeout in milliseconds.

The kernel doc for usb_bulk_msg() says the timeout for a bulk message should be
specified in milliseconds.  The ftdi-elan driver converts milliseconds to
jiffies before passing the timeout to usb_bulk_msg().  This is mostly harmless,
since it will just lead to very long timeouts, but was obviously not the intent
of the original author.

Signed-off-by: Sarah Sharp <sarah.a.sharp@intel.com>
Acked-by: Tony Olech <tony.olech@elandigitalsystems.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/ftdi-elan.c