diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-01-14 14:08:04 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 17:53:36 -0500 |
commit | 551cdbbeb118bd5ed301f8749aef69219284399b (patch) | |
tree | 83e2911ed9c1b35859f474030db9856f21967f24 /drivers/usb/core | |
parent | 16985408b5c48585762ec3b9b7bae1dec4ad7437 (diff) |
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
It's really the wireless speed, so rename the thing to make
more sense. Based on a recommendation from David Vrabel
Cc: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/hub.c | 6 | ||||
-rw-r--r-- | drivers/usb/core/sysfs.c | 2 | ||||
-rw-r--r-- | drivers/usb/core/urb.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 6f84d383ecee..4986ff628465 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -1990,7 +1990,7 @@ static int hub_port_wait_reset(struct usb_hub *hub, int port1, | |||
1990 | if (!(portstatus & USB_PORT_STAT_RESET) && | 1990 | if (!(portstatus & USB_PORT_STAT_RESET) && |
1991 | (portstatus & USB_PORT_STAT_ENABLE)) { | 1991 | (portstatus & USB_PORT_STAT_ENABLE)) { |
1992 | if (hub_is_wusb(hub)) | 1992 | if (hub_is_wusb(hub)) |
1993 | udev->speed = USB_SPEED_VARIABLE; | 1993 | udev->speed = USB_SPEED_WIRELESS; |
1994 | else if (portstatus & USB_PORT_STAT_HIGH_SPEED) | 1994 | else if (portstatus & USB_PORT_STAT_HIGH_SPEED) |
1995 | udev->speed = USB_SPEED_HIGH; | 1995 | udev->speed = USB_SPEED_HIGH; |
1996 | else if (portstatus & USB_PORT_STAT_LOW_SPEED) | 1996 | else if (portstatus & USB_PORT_STAT_LOW_SPEED) |
@@ -2689,7 +2689,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1, | |||
2689 | */ | 2689 | */ |
2690 | switch (udev->speed) { | 2690 | switch (udev->speed) { |
2691 | case USB_SPEED_SUPER: | 2691 | case USB_SPEED_SUPER: |
2692 | case USB_SPEED_VARIABLE: /* fixed at 512 */ | 2692 | case USB_SPEED_WIRELESS: /* fixed at 512 */ |
2693 | udev->ep0.desc.wMaxPacketSize = cpu_to_le16(512); | 2693 | udev->ep0.desc.wMaxPacketSize = cpu_to_le16(512); |
2694 | break; | 2694 | break; |
2695 | case USB_SPEED_HIGH: /* fixed at 64 */ | 2695 | case USB_SPEED_HIGH: /* fixed at 64 */ |
@@ -2717,7 +2717,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1, | |||
2717 | case USB_SPEED_SUPER: | 2717 | case USB_SPEED_SUPER: |
2718 | speed = "super"; | 2718 | speed = "super"; |
2719 | break; | 2719 | break; |
2720 | case USB_SPEED_VARIABLE: | 2720 | case USB_SPEED_WIRELESS: |
2721 | speed = "variable"; | 2721 | speed = "variable"; |
2722 | type = "Wireless "; | 2722 | type = "Wireless "; |
2723 | break; | 2723 | break; |
diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c index b1725abf6c7b..1b3c00b3ca3f 100644 --- a/drivers/usb/core/sysfs.c +++ b/drivers/usb/core/sysfs.c | |||
@@ -115,7 +115,7 @@ show_speed(struct device *dev, struct device_attribute *attr, char *buf) | |||
115 | case USB_SPEED_HIGH: | 115 | case USB_SPEED_HIGH: |
116 | speed = "480"; | 116 | speed = "480"; |
117 | break; | 117 | break; |
118 | case USB_SPEED_VARIABLE: | 118 | case USB_SPEED_WIRELESS: |
119 | speed = "480"; | 119 | speed = "480"; |
120 | break; | 120 | break; |
121 | case USB_SPEED_SUPER: | 121 | case USB_SPEED_SUPER: |
diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c index e2bd153cbd89..27080561a1c2 100644 --- a/drivers/usb/core/urb.c +++ b/drivers/usb/core/urb.c | |||
@@ -437,7 +437,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags) | |||
437 | case USB_ENDPOINT_XFER_INT: | 437 | case USB_ENDPOINT_XFER_INT: |
438 | /* too small? */ | 438 | /* too small? */ |
439 | switch (dev->speed) { | 439 | switch (dev->speed) { |
440 | case USB_SPEED_VARIABLE: | 440 | case USB_SPEED_WIRELESS: |
441 | if (urb->interval < 6) | 441 | if (urb->interval < 6) |
442 | return -EINVAL; | 442 | return -EINVAL; |
443 | break; | 443 | break; |
@@ -453,7 +453,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags) | |||
453 | if (urb->interval > (1 << 15)) | 453 | if (urb->interval > (1 << 15)) |
454 | return -EINVAL; | 454 | return -EINVAL; |
455 | max = 1 << 15; | 455 | max = 1 << 15; |
456 | case USB_SPEED_VARIABLE: | 456 | case USB_SPEED_WIRELESS: |
457 | if (urb->interval > 16) | 457 | if (urb->interval > 16) |
458 | return -EINVAL; | 458 | return -EINVAL; |
459 | break; | 459 | break; |
@@ -480,7 +480,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags) | |||
480 | default: | 480 | default: |
481 | return -EINVAL; | 481 | return -EINVAL; |
482 | } | 482 | } |
483 | if (dev->speed != USB_SPEED_VARIABLE) { | 483 | if (dev->speed != USB_SPEED_WIRELESS) { |
484 | /* Round down to a power of 2, no more than max */ | 484 | /* Round down to a power of 2, no more than max */ |
485 | urb->interval = min(max, 1 << ilog2(urb->interval)); | 485 | urb->interval = min(max, 1 << ilog2(urb->interval)); |
486 | } | 486 | } |