USB: use usb_endpoint_maxp() instead of le16_to_cpu()
[deliverable/linux.git] / drivers / usb / gadget / epautoconf.c
index 7a7e6b7e1fd614639f53a8fa9b19fd83648b9d6d..cdca7ebb7b48e9d0232953a0ef1b9c02d89e9e36 100644 (file)
@@ -158,7 +158,7 @@ ep_matches (
         * where it's an output parameter representing the full speed limit.
         * the usb spec fixes high speed bulk maxpacket at 512 bytes.
         */
-       max = 0x7ff & le16_to_cpu(desc->wMaxPacketSize);
+       max = 0x7ff & usb_endpoint_maxp(desc);
        switch (type) {
        case USB_ENDPOINT_XFER_INT:
                /* INT:  limit 64 bytes full speed, 1024 high/super speed */
This page took 0.025126 seconds and 5 git commands to generate.