Commit 1f5bba73 authored by Felipe Balbi's avatar Felipe Balbi

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: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent f0419d9f
...@@ -182,7 +182,7 @@ int bdc_config_ep(struct bdc *bdc, struct bdc_ep *ep) ...@@ -182,7 +182,7 @@ int bdc_config_ep(struct bdc *bdc, struct bdc_ep *ep)
usb_endpoint_xfer_int(desc)) { usb_endpoint_xfer_int(desc)) {
param2 |= si; param2 |= si;
mbs = (usb_endpoint_maxp(desc) & 0x1800) >> 11; mbs = usb_endpoint_maxp_mult(desc);
param2 |= mbs << MB_SHIFT; param2 |= mbs << MB_SHIFT;
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment