summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8bb0fd3)
raw | patch | inline | side by side (parent: 8bb0fd3)
author | Thanh Tran <thanh-tran@ti.com> | |
Tue, 9 Apr 2019 18:52:55 +0000 (14:52 -0400) | ||
committer | Thanh Tran <thanh-tran@ti.com> | |
Tue, 9 Apr 2019 18:52:55 +0000 (14:52 -0400) |
USB_Config can be set dynamically during run time so need to change
it to non-const.
Also fix linking error due to mismatch declarations of
consts variables
it to non-const.
Also fix linking error due to mismatch declarations of
consts variables
src/dwc/usb_xhci_hcd.c | patch | blob | history | |
src/usb_drv.c | patch | blob | history |
diff --git a/src/dwc/usb_xhci_hcd.c b/src/dwc/usb_xhci_hcd.c
index 03b0940fec317087e9acbedeaef911585c758214..e210f35ef54f4b3cb18852746327f69e4cfd26e6 100644 (file)
--- a/src/dwc/usb_xhci_hcd.c
+++ b/src/dwc/usb_xhci_hcd.c
#define XHCI_PORT_RO ((1<<0) | (1<<3) | (0xf<<10) | (1<<30))
#define XHCI_PORT_RWS ((0xf<<5) | (1<<9) | (0x3<<14) | (0x7<<25))
-extern const USB_Config USB_config[3];
+extern USB_Config USB_config[3];
/* enabling compliance mode for xHCI1.1
* Compliance mode seems to require SERDES turned on
diff --git a/src/usb_drv.c b/src/usb_drv.c
index 0f4461e832ac2ebd7361e89ae6ee8516e3bb0677..6b594fd972d45a37445558e84cf28ba93d7c3888 100644 (file)
--- a/src/usb_drv.c
+++ b/src/usb_drv.c
#include <ti/drv/usb/usb_drv.h>
/* Externs */
-extern const USB_Config USB_config[];
+extern USB_Config USB_config[];
/* Used to check status and initialization */