usb: dwc3: gadget: re-factor dwc3_prepare_trbs()
authorFelipe Balbi <balbi@ti.com>
Tue, 22 Nov 2011 09:37:34 +0000 (11:37 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 21 Dec 2011 11:24:45 +0000 (13:24 +0200)
commitc71fc37c191747ea1f00424e84f96c1f88e52bfc
tree446082d7f2d59e5976c8ae640ee149b1a761c439
parent898c60867827796f0f6f84e5de446098d776c866
usb: dwc3: gadget: re-factor dwc3_prepare_trbs()

In order to make it easier to add SG support,
let's split the big loop out to its own function.

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