usb: gadget: lpc32xx_udc: Support multiple controllers
authorRoland Stigge <stigge@antcom.de>
Mon, 20 Aug 2012 08:30:14 +0000 (10:30 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 31 Aug 2012 09:41:25 +0000 (12:41 +0300)
The lpc32xx_udc driver supported only one controller by defining a global
static struct for it. This patch enables multiple instances of the controller
by dynamic allocation of the struct at probe(). A static struct is kept as a
template on initialization since it does some complex preset, reflecting fixed
hardware endpoint structure.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found