diff options
Diffstat (limited to 'drivers/usb/gadget/epautoconf.c')
-rw-r--r-- | drivers/usb/gadget/epautoconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index 7a7e6b7e1fd6..cdca7ebb7b48 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c | |||
@@ -158,7 +158,7 @@ ep_matches ( | |||
158 | * where it's an output parameter representing the full speed limit. | 158 | * where it's an output parameter representing the full speed limit. |
159 | * the usb spec fixes high speed bulk maxpacket at 512 bytes. | 159 | * the usb spec fixes high speed bulk maxpacket at 512 bytes. |
160 | */ | 160 | */ |
161 | max = 0x7ff & le16_to_cpu(desc->wMaxPacketSize); | 161 | max = 0x7ff & usb_endpoint_maxp(desc); |
162 | switch (type) { | 162 | switch (type) { |
163 | case USB_ENDPOINT_XFER_INT: | 163 | case USB_ENDPOINT_XFER_INT: |
164 | /* INT: limit 64 bytes full speed, 1024 high/super speed */ | 164 | /* INT: limit 64 bytes full speed, 1024 high/super speed */ |