diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2009-02-11 17:11:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-24 19:20:33 -0400 |
commit | 551509d267905705f6d723e51ec706916f06b859 (patch) | |
tree | 9dde914015af234cd4c399585037d8dca7d42e78 /drivers/usb/core/hub.c | |
parent | a78b42824dd7c2b40d72fb01f1b1842f7e845f3a (diff) |
USB: replace uses of __constant_{endian}
The base versions handle constant folding now.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r-- | drivers/usb/core/hub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index cd50d86029e7..7e33d63ab92f 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -2471,20 +2471,20 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1, | |||
2471 | */ | 2471 | */ |
2472 | switch (udev->speed) { | 2472 | switch (udev->speed) { |
2473 | case USB_SPEED_VARIABLE: /* fixed at 512 */ | 2473 | case USB_SPEED_VARIABLE: /* fixed at 512 */ |
2474 | udev->ep0.desc.wMaxPacketSize = __constant_cpu_to_le16(512); | 2474 | udev->ep0.desc.wMaxPacketSize = cpu_to_le16(512); |
2475 | break; | 2475 | break; |
2476 | case USB_SPEED_HIGH: /* fixed at 64 */ | 2476 | case USB_SPEED_HIGH: /* fixed at 64 */ |
2477 | udev->ep0.desc.wMaxPacketSize = __constant_cpu_to_le16(64); | 2477 | udev->ep0.desc.wMaxPacketSize = cpu_to_le16(64); |
2478 | break; | 2478 | break; |
2479 | case USB_SPEED_FULL: /* 8, 16, 32, or 64 */ | 2479 | case USB_SPEED_FULL: /* 8, 16, 32, or 64 */ |
2480 | /* to determine the ep0 maxpacket size, try to read | 2480 | /* to determine the ep0 maxpacket size, try to read |
2481 | * the device descriptor to get bMaxPacketSize0 and | 2481 | * the device descriptor to get bMaxPacketSize0 and |
2482 | * then correct our initial guess. | 2482 | * then correct our initial guess. |
2483 | */ | 2483 | */ |
2484 | udev->ep0.desc.wMaxPacketSize = __constant_cpu_to_le16(64); | 2484 | udev->ep0.desc.wMaxPacketSize = cpu_to_le16(64); |
2485 | break; | 2485 | break; |
2486 | case USB_SPEED_LOW: /* fixed at 8 */ | 2486 | case USB_SPEED_LOW: /* fixed at 8 */ |
2487 | udev->ep0.desc.wMaxPacketSize = __constant_cpu_to_le16(8); | 2487 | udev->ep0.desc.wMaxPacketSize = cpu_to_le16(8); |
2488 | break; | 2488 | break; |
2489 | default: | 2489 | default: |
2490 | goto fail; | 2490 | goto fail; |