usb: dwc3: gadget: Refactor preparing last TRBs

There are a lot of common codes for preparing SG and linear TRBs.
Refactor them for easier read.

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
This commit is contained in:
Thinh Nguyen 2020-09-24 01:22:07 -07:00 • committed by Felipe Balbi
commit cb1b3997b6