diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-09-28 12:29:39 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-11-03 09:38:18 +0100 |
commit | 1f5bba7381c58670dbb1b50885b45c2660e12eb5 (patch) | |
tree | 1fec1218df083b8db7e6e22115190f7c4785b726 /drivers/usb/gadget/udc | |
parent | usb: gadget: udc: atmel: make use of new usb_endpoint_maxp_mult() (diff) | |
download | linux-1f5bba7381c58670dbb1b50885b45c2660e12eb5.tar.xz linux-1f5bba7381c58670dbb1b50885b45c2660e12eb5.zip |
usb: gadget: udc: bdc: make use of new usb_endpoint_maxp_mult()
We have introduced a helper to calculate multiplier
value from wMaxPacketSize. Start using it.
Cc: Ashwini Pahuja <ashwini.linux@gmail.com>
Cc: <linux-usb@vger.kernel.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/udc')
-rw-r--r-- | drivers/usb/gadget/udc/bdc/bdc_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/bdc/bdc_cmd.c b/drivers/usb/gadget/udc/bdc/bdc_cmd.c index 4d5e9188beae..6e920f1dce02 100644 --- a/drivers/usb/gadget/udc/bdc/bdc_cmd.c +++ b/drivers/usb/gadget/udc/bdc/bdc_cmd.c @@ -182,7 +182,7 @@ int bdc_config_ep(struct bdc *bdc, struct bdc_ep *ep) usb_endpoint_xfer_int(desc)) { param2 |= si; - mbs = (usb_endpoint_maxp(desc) & 0x1800) >> 11; + mbs = usb_endpoint_maxp_mult(desc); param2 |= mbs << MB_SHIFT; } break; |