| 1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
| 2 |
/* |
| 3 |
* Cadence USBSS and USBSSP DRD Driver - Host Export APIs |
| 4 |
* |
| 5 |
* Copyright (C) 2017-2018 NXP |
| 6 |
* |
| 7 |
* Authors: Peter Chen <[email protected]> |
| 8 |
*/ |
| 9 |
#ifndef __LINUX_CDNS3_HOST_EXPORT |
| 10 |
#define __LINUX_CDNS3_HOST_EXPORT |
| 11 |
|
| 12 |
#if IS_ENABLED(CONFIG_USB_CDNS_HOST) |
| 13 |
|
| 14 |
int cdns_host_init(struct cdns *cdns); |
| 15 |
|
| 16 |
#else |
| 17 |
|
| 18 |
static inline int cdns_host_init(struct cdns *cdns) |
| 19 |
{ |
| 20 |
return -ENXIO; |
| 21 |
} |
| 22 |
|
| 23 |
static inline void cdns_host_exit(struct cdns *cdns) { } |
| 24 |
|
| 25 |
#endif /* USB_CDNS_HOST */ |
| 26 |
|
| 27 |
#endif /* __LINUX_CDNS3_HOST_EXPORT */ |