aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2009-04-29 22:06:20 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-16 00:44:50 -0400
commitf0058c627855ecb3b6c7185b7ad1910463c24c42 (patch)
treedfa5e75711a2a1dfe8d3b5384558290ad18cf9d6 /include/linux
parentb7116ebca4e1a898f30ae474151fd6474327257c (diff)
USB: Change names of SuperSpeed ep companion descriptor structs.
Differentiate between SuperSpeed endpoint companion descriptor and the wireless USB endpoint companion descriptor. Make all structure names for this descriptor have "ss" (SuperSpeed) in them. David Vrabel asked for this change in http://marc.info/?l=linux-usb&m=124091465109367&w=2 Reported-by: David Vrabel <david.vrabel@csr.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb.h14
-rw-r--r--include/linux/usb/ch9.h4
2 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 0a1819a64974..7e6b5259ea35 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -47,15 +47,15 @@ struct ep_device;
47 47
48/* For SS devices */ 48/* For SS devices */
49/** 49/**
50 * struct usb_host_ep_comp - Valid for SuperSpeed devices only 50 * struct usb_host_ss_ep_comp - Valid for SuperSpeed devices only
51 * @desc: endpoint companion descriptor, wMaxPacketSize in native byteorder 51 * @desc: endpoint companion descriptor, wMaxPacketSize in native byteorder
52 * @extra: descriptors following this endpoint companion descriptor 52 * @extra: descriptors following this endpoint companion descriptor
53 * @extralen: how many bytes of "extra" are valid 53 * @extralen: how many bytes of "extra" are valid
54 */ 54 */
55struct usb_host_ep_comp { 55struct usb_host_ss_ep_comp {
56 struct usb_ep_comp_descriptor desc; 56 struct usb_ss_ep_comp_descriptor desc;
57 unsigned char *extra; /* Extra descriptors */ 57 unsigned char *extra; /* Extra descriptors */
58 int extralen; 58 int extralen;
59}; 59};
60 60
61/** 61/**
@@ -65,7 +65,7 @@ struct usb_host_ep_comp {
65 * @hcpriv: for use by HCD; typically holds hardware dma queue head (QH) 65 * @hcpriv: for use by HCD; typically holds hardware dma queue head (QH)
66 * with one or more transfer descriptors (TDs) per urb 66 * with one or more transfer descriptors (TDs) per urb
67 * @ep_dev: ep_device for sysfs info 67 * @ep_dev: ep_device for sysfs info
68 * @ep_comp: companion descriptor information for this endpoint 68 * @ss_ep_comp: companion descriptor information for this endpoint
69 * @extra: descriptors following this endpoint in the configuration 69 * @extra: descriptors following this endpoint in the configuration
70 * @extralen: how many bytes of "extra" are valid 70 * @extralen: how many bytes of "extra" are valid
71 * @enabled: URBs may be submitted to this endpoint 71 * @enabled: URBs may be submitted to this endpoint
@@ -78,7 +78,7 @@ struct usb_host_endpoint {
78 struct list_head urb_list; 78 struct list_head urb_list;
79 void *hcpriv; 79 void *hcpriv;
80 struct ep_device *ep_dev; /* For sysfs info */ 80 struct ep_device *ep_dev; /* For sysfs info */
81 struct usb_host_ep_comp *ep_comp; /* For SS devices */ 81 struct usb_host_ss_ep_comp *ss_ep_comp; /* For SS devices */
82 82
83 unsigned char *extra; /* Extra descriptors */ 83 unsigned char *extra; /* Extra descriptors */
84 int extralen; 84 int extralen;
diff --git a/include/linux/usb/ch9.h b/include/linux/usb/ch9.h
index 9e9c5c0a3d72..93223638f702 100644
--- a/include/linux/usb/ch9.h
+++ b/include/linux/usb/ch9.h
@@ -538,7 +538,7 @@ static inline int usb_endpoint_is_isoc_out(
538/*-------------------------------------------------------------------------*/ 538/*-------------------------------------------------------------------------*/
539 539
540/* USB_DT_SS_ENDPOINT_COMP: SuperSpeed Endpoint Companion descriptor */ 540/* USB_DT_SS_ENDPOINT_COMP: SuperSpeed Endpoint Companion descriptor */
541struct usb_ep_comp_descriptor { 541struct usb_ss_ep_comp_descriptor {
542 __u8 bLength; 542 __u8 bLength;
543 __u8 bDescriptorType; 543 __u8 bDescriptorType;
544 544
@@ -547,7 +547,7 @@ struct usb_ep_comp_descriptor {
547 __u16 wBytesPerInterval; 547 __u16 wBytesPerInterval;
548} __attribute__ ((packed)); 548} __attribute__ ((packed));
549 549
550#define USB_DT_EP_COMP_SIZE 6 550#define USB_DT_SS_EP_COMP_SIZE 6
551 551
552/*-------------------------------------------------------------------------*/ 552/*-------------------------------------------------------------------------*/
553 553