]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/usb/gadget/s3c-hsotg.c
usb: gadget: add "maxpacket_limit" field to struct usb_ep
[mirror_ubuntu-bionic-kernel.git] / drivers / usb / gadget / s3c-hsotg.c
index 6c80bfcefa87051e63418476f78344a0694696bd..50df18d1f1cfc719e979339649ec9e2f226ad179 100644 (file)
@@ -3150,7 +3150,7 @@ static void s3c_hsotg_initep(struct s3c_hsotg *hsotg,
 
        hs_ep->parent = hsotg;
        hs_ep->ep.name = hs_ep->name;
-       hs_ep->ep.maxpacket = epnum ? 1024 : EP0_MPS_LIMIT;
+       usb_ep_set_maxpacket_limit(&hs_ep->ep, epnum ? 1024 : EP0_MPS_LIMIT);
        hs_ep->ep.ops = &s3c_hsotg_ep_ops;
 
        /*