Re: [PATCH] USB and Driver Core patches for 2.6.10

Greg KH
2005-01-08T09:25:25Z

ChangeSet 1.1938.439.52, 2005/01/07 08:45:22-08:00, david-b@pacbell.net

[PATCH] USB: minor usb doc/comment fixes

Some minor doc/comment fixes for USB.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

drivers/usb/gadget/epautoconf.c | 3 +++
drivers/usb/gadget/omap_udc.c | 2 +-
include/linux/usb.h | 4 ++--
3 files changed, 6 insertions(+), 3 deletions(-)

diff -Nru a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c
--- a/drivers/usb/gadget/epautoconf.c 2005-01-07 15:36:43 -08:00
+++ b/drivers/usb/gadget/epautoconf.c 2005-01-07 15:36:43 -08:00
@@ -55,6 +55,9 @@
*
* Type suffixes are "-bulk", "-iso", or "-int". Numbers are decimal.
* Less common restrictions are implied by gadget_is_*().
+ *
+ * NOTE: each endpoint is unidirectional, as specified by its USB
+ * descriptor; and isn't specific to a configuration or altsetting.
*/
static int __init
ep_matches (
diff -Nru a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c
--- a/drivers/usb/gadget/omap_udc.c 2005-01-07 15:36:43 -08:00
+++ b/drivers/usb/gadget/omap_udc.c 2005-01-07 15:36:43 -08:00
@@ -1,5 +1,5 @@
/*
- * omap_udc.c -- for OMAP 1610 udc, with OTG support
+ * omap_udc.c -- for OMAP full speed udc; most chips support OTG.
*
* Copyright (C) 2004 Texas Instruments, Inc.
* Copyright (C) 2004 David Brownell
diff -Nru a/include/linux/usb.h b/include/linux/usb.h
--- a/include/linux/usb.h 2005-01-07 15:36:43 -08:00
+++ b/include/linux/usb.h 2005-01-07 15:36:43 -08:00
@@ -739,8 +739,8 @@
* to poll for transfers. After the URB has been submitted, the interval
* field reflects how the transfer was actually scheduled.
* The polling interval may be more frequent than requested.
- * For example, some controllers have a maximum interval of 32 microseconds,
- * while others support intervals of up to 1024 microseconds.
+ * For example, some controllers have a maximum interval of 32 milliseconds,
+ * while others support intervals of up to 1024 milliseconds.
* Isochronous URBs also have transfer intervals. (Note that for isochronous
* endpoints, as well as high speed interrupt endpoints, the encoding of
* the transfer interval in the endpoint descriptor is logarithmic.