1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Cadence USBSS and USBSSP DRD Driver - Gadget Export APIs.
4  *
5  * Copyright (C) 2017 NXP
6  * Copyright (C) 2017-2018 NXP
7  *
8  * Authors: Peter Chen <peter.chen@nxp.com>
9  */
10 #ifndef __LINUX_CDNS3_GADGET_EXPORT
11 #define __LINUX_CDNS3_GADGET_EXPORT
12 
13 #if IS_ENABLED(CONFIG_USB_CDNSP_GADGET)
14 
15 int cdnsp_gadget_init(struct cdns *cdns);
16 #else
17 
18 static inline int cdnsp_gadget_init(struct cdns *cdns)
19 {
20 	return -ENXIO;
21 }
22 
23 #endif /* CONFIG_USB_CDNSP_GADGET */
24 
25 #if IS_ENABLED(CONFIG_USB_CDNS3_GADGET)
26 
27 int cdns3_gadget_init(struct cdns *cdns);
28 #else
29 
30 static inline int cdns3_gadget_init(struct cdns *cdns)
31 {
32 	return -ENXIO;
33 }
34 
35 #endif /* CONFIG_USB_CDNS3_GADGET */
36 
37 #endif /* __LINUX_CDNS3_GADGET_EXPORT */
38