usb: gadget: composite: fix ep->maxburst initialization
authorFelipe Balbi <balbi@ti.com>
Wed, 6 Jun 2012 07:20:23 +0000 (10:20 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 12 Jun 2012 10:30:25 +0000 (13:30 +0300)
commitb785ea7ce662c47f6208071320638a4813722803
tree0d67df8e58fa303a05ad45afd9343f7e96825fd0
parentfbcaba0e3dcec8451cccdc1fa92fcddbde2bc3f2
usb: gadget: composite: fix ep->maxburst initialization

bMaxBurst field on endpoint companion descriptor
is supposed to contain the number of burst minus
1. When passing that to controller drivers, we
should be passing the real number instead (by
incrementing 1).

While doing that, also fix the assumption on
dwc3 that value comes decremented by one.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c
drivers/usb/gadget/composite.c