commit | c4846a1807fc6138e2f010d65757feb4b7b0c2cf | [log] [tgz] |
---|---|---|
author | Roland Stigge <stigge@antcom.de> | Mon Aug 20 10:30:14 2012 +0200 |
committer | Felipe Balbi <balbi@ti.com> | Fri Aug 31 12:41:25 2012 +0300 |
tree | 90109b2515710dd4f002c50ee83a908ae54d5c13 | |
parent | 78ca9139736f059b70bd797b01227271e0efa681 [diff] |
usb: gadget: lpc32xx_udc: Support multiple controllers 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>