usb: dwc3: gadget: re-factor ->udc_start and ->udc_stop
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 4 May 2016 12:49:37 +0000 (15:49 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:30:04 +0000 (12:30 +0300)
commitd7be295243bbe53649986d869b398403eaa41bb7
tree626bb94616d74ebacc6cd59a415c8f053291ec40
parent5185c91385d73cdf79836eb8548e4726e43ae831
usb: dwc3: gadget: re-factor ->udc_start and ->udc_stop

we will be re-using it for suspend/resume, so
instead of duplicating code, let's just re-factor
the functions so they can be re-used.

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