usb: dwc2: Move gadget settings into core_params
authorJohn Youn <johnyoun@synopsys.com>
Fri, 4 Nov 2016 00:56:05 +0000 (17:56 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:12 +0000 (13:54 +0200)
commit05ee799f2021658cc0fc64c1f05c940877b90724
tree88fd94bf56fddbf32c787703f5032ce5991184a6
parentd1531319dddc588d5e5c3045c55313203555f5be
usb: dwc2: Move gadget settings into core_params

Move the gadget devicetree settings into the core_params structure and
document them. Then set and check them in params.c, with the addition of
some helper functions, and remove the equivalent code in gadget.c.

Because these parameters came from the standalone s3c driver, they have
a fixed default value rather than an autodetected one. Preserve and
document this behavior to avoid any compatibility issues.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c
drivers/usb/dwc2/params.c