usb: gadget: udc: atmel: make use of new usb_endpoint_maxp_mult()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 28 Sep 2016 10:28:44 +0000 (13:28 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 3 Nov 2016 08:38:18 +0000 (10:38 +0200)
commitf0419d9fdf402b4ac07db974df9f3cd3f5de2cdd
tree63db8d058efe4b4e12676a3b7b8641b66425345a
parent91f97521bb3f42f7a0447c130c789cb7c1810714
usb: gadget: udc: atmel: make use of new usb_endpoint_maxp_mult()

We have introduced a helper to calculate multiplier
value from wMaxPacketSize. Start using it.

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: <linux-usb@vger.kernel.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/atmel_usba_udc.c