USB: use usb_endpoint_maxp() instead of le16_to_cpu()
[deliverable/linux.git] / drivers / usb / host / ohci-q.c
index dd24fc115e4892cc9649da9adae214a4fca7a6d9..15dc51ded61a5460b3e253004827669be7bceebb 100644 (file)
@@ -428,7 +428,7 @@ static struct ed *ed_get (
                ed->type = usb_pipetype(pipe);
 
                info |= (ep->desc.bEndpointAddress & ~USB_DIR_IN) << 7;
-               info |= le16_to_cpu(ep->desc.wMaxPacketSize) << 16;
+               info |= usb_endpoint_maxp(&ep->desc) << 16;
                if (udev->speed == USB_SPEED_LOW)
                        info |= ED_LOWSPEED;
                /* only control transfers store pids in tds */
@@ -444,7 +444,7 @@ static struct ed *ed_get (
                                ed->load = usb_calc_bus_time (
                                        udev->speed, !is_out,
                                        ed->type == PIPE_ISOCHRONOUS,
-                                       le16_to_cpu(ep->desc.wMaxPacketSize))
+                                       usb_endpoint_maxp(&ep->desc))
                                                / 1000;
                        }
                }
This page took 0.02454 seconds and 5 git commands to generate.