usb: dwc2: Update the gadget driver to use common dwc2_hsotg structure
authorDinh Nguyen <dinguyen@opensource.altera.com>
Tue, 11 Nov 2014 17:13:33 +0000 (11:13 -0600)
committerFelipe Balbi <balbi@ti.com>
Fri, 14 Nov 2014 20:59:01 +0000 (14:59 -0600)
commit941fcce4ff6701c5a7d673d0abb063a7de1234bf
tree5eda08665331fef6c629bac0f07293b58b41ff04
parent0cf884e819e05437287a668b9bfcc198bab6329c
usb: dwc2: Update the gadget driver to use common dwc2_hsotg structure

Adds the gadget data structure and appropriate data structure pointers
to the common dwc2_hsotg data structure. To keep the driver data
dereference code looking clean, the gadget variable declares are only available
for peripheral and dual-role mode. This is needed so that the dwc2_hsotg data
structure can be used by the hcd and gadget drivers.

Updates gadget.c to use the dwc2_hsotg data structure and gadget pointers
that have been moved into the common dwc2_hsotg structure.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/gadget.c