dm: usb: Prepare dwc2 driver for driver-model conversion
authorSimon Glass <sjg@chromium.org>
Wed, 8 Jul 2015 02:53:36 +0000 (20:53 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Aug 2015 13:31:37 +0000 (07:31 -0600)
commitcc3e3a9e0eab3bc15be1766222fc2739f375252a
tree201ed7d9f1c368c426c676ab41f12c66f1da60e4
parent2e5350fee0f6d17306c851cbf1fbc9e010bd8478
dm: usb: Prepare dwc2 driver for driver-model conversion

Put all global data in a structure and move (what will be) common code into
common functions. This will make the driver-model conversion much easier.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/dwc2.c