diff options
author | Felipe Balbi <balbi@ti.com> | 2012-05-04 05:58:14 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-05-04 05:58:14 -0400 |
commit | 3ef35fafdc87b72851f7785dc5331a0f4eb1b3ce (patch) | |
tree | 83664ecb128f24e2c8cad82797eaa0f7ee7f311e /drivers/usb/dwc3/core.h | |
parent | f898ae09a043cf9c3c4be82c04e08fcf00fe82c1 (diff) |
usb: dwc3: define DWC3_EP0_BOUNCE_SIZE
to avoid sprinkling magic constants on the driver
we define a constant to be used when allocating
setup_buffer and ep0_bounce buffer.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r-- | drivers/usb/dwc3/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index ef28bd5680c5..fbd0c8e30c19 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h | |||
@@ -51,6 +51,7 @@ | |||
51 | #include <linux/usb/gadget.h> | 51 | #include <linux/usb/gadget.h> |
52 | 52 | ||
53 | /* Global constants */ | 53 | /* Global constants */ |
54 | #define DWC3_EP0_BOUNCE_SIZE 512 | ||
54 | #define DWC3_ENDPOINTS_NUM 32 | 55 | #define DWC3_ENDPOINTS_NUM 32 |
55 | #define DWC3_XHCI_RESOURCES_NUM 2 | 56 | #define DWC3_XHCI_RESOURCES_NUM 2 |
56 | 57 | ||