summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/core.h
diff options
context:
space:
mode:
authorFelipe Balbi2011-10-18 12:54:01 +0200
committerFelipe Balbi2011-12-12 10:48:21 +0100
commit8300dd236e957429acfb36be0ce8fe276dbe823c (patch)
treea8ed42c6ed57f396b49f807eb6bef4abbcfc8c3f /drivers/usb/dwc3/core.h
parentusb: dwc3: remove special status request handling in ep0 (diff)
downloadkernel-qcow2-linux-8300dd236e957429acfb36be0ce8fe276dbe823c.tar.gz
kernel-qcow2-linux-8300dd236e957429acfb36be0ce8fe276dbe823c.tar.xz
kernel-qcow2-linux-8300dd236e957429acfb36be0ce8fe276dbe823c.zip
usb: dwc3: move dwc3 device ID bitmap to core.c
if we want to support situations where we have both SoC and PCIe versions of the IP on the same platform, we need to have sequential numbers between them, otherwise we will still have name collisions. Because of that, we need to move dwc3_get/put_device_id() to core.c and export that symbol to be used by glue layers. 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, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index bebb5e1530a0..95d5a87b4091 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -793,4 +793,7 @@ void dwc3_host_exit(struct dwc3 *dwc);
int dwc3_gadget_init(struct dwc3 *dwc);
void dwc3_gadget_exit(struct dwc3 *dwc);
+extern int dwc3_get_device_id(void);
+extern void dwc3_put_device_id(int id);
+
#endif /* __DRIVERS_USB_DWC3_CORE_H */