usb: dwc3: gadget: Refactor preparing last TRBs
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 24 Sep 2020 08:22:07 +0000 (01:22 -0700)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 06:57:44 +0000 (09:57 +0300)
commitcb1b3997b636f65cee70e03c86627be521272c5d
tree60745a94e60b25dac9d18f56714a4ba71d966ce9
parent30892cba55968fe244feac811cd00cc12b1a574b
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>
drivers/usb/dwc3/gadget.c