summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/core.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-10-24 12:03:13 +0300
committerFelipe Balbi <balbi@ti.com>2011-12-12 11:48:24 +0200
commit457d3f214f97783c392dd4d64e2427c121b1a4d6 (patch)
tree37ce34cb8a336c30d0a24589358c94bb85ee957a /drivers/usb/dwc3/core.h
parent5ddcee27c19e36711992a0e6ed3249fd06faa0e7 (diff)
usb: dwc3: core: drop DWC3_EVENT_BUFFERS_MAX
hardware will tell us how many event buffers we need to support, so let's allocate the array dynamically too. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r--drivers/usb/dwc3/core.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index 95d5a87b4091..d6f1b793cd04 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -53,7 +53,6 @@
/* Global constants */
#define DWC3_ENDPOINTS_NUM 32
-#define DWC3_EVENT_BUFFERS_MAX 2
#define DWC3_EVENT_BUFFERS_SIZE PAGE_SIZE
#define DWC3_EVENT_TYPE_MASK 0xfe
@@ -603,7 +602,7 @@ struct dwc3 {
struct platform_device *xhci;
struct resource *res;
- struct dwc3_event_buffer *ev_buffs[DWC3_EVENT_BUFFERS_MAX];
+ struct dwc3_event_buffer **ev_buffs;
struct dwc3_ep *eps[DWC3_ENDPOINTS_NUM];
struct usb_gadget gadget;