mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
f0419d9fdf
commit
1f5bba7381
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue