diff options
Diffstat (limited to 'drivers/usb/misc/usbtest.c')
-rw-r--r-- | drivers/usb/misc/usbtest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index bd715006b056..930962f49276 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c | |||
@@ -1585,8 +1585,8 @@ static struct urb *iso_alloc_urb( | |||
1585 | 1585 | ||
1586 | if (bytes < 0 || !desc) | 1586 | if (bytes < 0 || !desc) |
1587 | return NULL; | 1587 | return NULL; |
1588 | maxp = 0x7ff & le16_to_cpu(desc->wMaxPacketSize); | 1588 | maxp = 0x7ff & usb_endpoint_maxp(desc); |
1589 | maxp *= 1 + (0x3 & (le16_to_cpu(desc->wMaxPacketSize) >> 11)); | 1589 | maxp *= 1 + (0x3 & (usb_endpoint_maxp(desc) >> 11)); |
1590 | packets = DIV_ROUND_UP(bytes, maxp); | 1590 | packets = DIV_ROUND_UP(bytes, maxp); |
1591 | 1591 | ||
1592 | urb = usb_alloc_urb(packets, GFP_KERNEL); | 1592 | urb = usb_alloc_urb(packets, GFP_KERNEL); |
@@ -1656,7 +1656,7 @@ test_iso_queue(struct usbtest_dev *dev, struct usbtest_param *param, | |||
1656 | "... iso period %d %sframes, wMaxPacket %04x\n", | 1656 | "... iso period %d %sframes, wMaxPacket %04x\n", |
1657 | 1 << (desc->bInterval - 1), | 1657 | 1 << (desc->bInterval - 1), |
1658 | (udev->speed == USB_SPEED_HIGH) ? "micro" : "", | 1658 | (udev->speed == USB_SPEED_HIGH) ? "micro" : "", |
1659 | le16_to_cpu(desc->wMaxPacketSize)); | 1659 | usb_endpoint_maxp(desc)); |
1660 | 1660 | ||
1661 | for (i = 0; i < param->sglen; i++) { | 1661 | for (i = 0; i < param->sglen; i++) { |
1662 | urbs[i] = iso_alloc_urb(udev, pipe, desc, | 1662 | urbs[i] = iso_alloc_urb(udev, pipe, desc, |