]> Git Repo - linux.git/blob - drivers/usb/cdns3/gadget-export.h
Merge tag 'drm-intel-next-2019-10-07' of git://anongit.freedesktop.org/drm/drm-intel...
[linux.git] / drivers / usb / cdns3 / gadget-export.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Cadence USBSS DRD Driver - Gadget Export APIs.
4  *
5  * Copyright (C) 2017 NXP
6  * Copyright (C) 2017-2018 NXP
7  *
8  * Authors: Peter Chen <[email protected]>
9  */
10 #ifndef __LINUX_CDNS3_GADGET_EXPORT
11 #define __LINUX_CDNS3_GADGET_EXPORT
12
13 #ifdef CONFIG_USB_CDNS3_GADGET
14
15 int cdns3_gadget_init(struct cdns3 *cdns);
16 void cdns3_gadget_exit(struct cdns3 *cdns);
17 #else
18
19 static inline int cdns3_gadget_init(struct cdns3 *cdns)
20 {
21         return -ENXIO;
22 }
23
24 static inline void cdns3_gadget_exit(struct cdns3 *cdns) { }
25
26 #endif
27
28 #endif /* __LINUX_CDNS3_GADGET_EXPORT */
This page took 0.033188 seconds and 4 git commands to generate.