Brooklyn/drivers/usb/cdns3/host-export.h

28 lines
537 B
C
Raw Normal View History

2021-05-27 00:09:36 +05:00
/* SPDX-License-Identifier: GPL-2.0 */
/*
2021-10-02 21:09:28 +05:00
* Cadence USBSS and USBSSP DRD Driver - Host Export APIs
2021-05-27 00:09:36 +05:00
*
* Copyright (C) 2017-2018 NXP
*
* Authors: Peter Chen <peter.chen@nxp.com>
*/
#ifndef __LINUX_CDNS3_HOST_EXPORT
#define __LINUX_CDNS3_HOST_EXPORT
2021-10-02 21:09:28 +05:00
#if IS_ENABLED(CONFIG_USB_CDNS_HOST)
2021-05-27 00:09:36 +05:00
2021-10-02 21:09:28 +05:00
int cdns_host_init(struct cdns *cdns);
2021-05-27 00:09:36 +05:00
#else
2021-10-02 21:09:28 +05:00
static inline int cdns_host_init(struct cdns *cdns)
2021-05-27 00:09:36 +05:00
{
return -ENXIO;
}
2021-10-02 21:09:28 +05:00
static inline void cdns_host_exit(struct cdns *cdns) { }
2021-05-27 00:09:36 +05:00
2021-10-02 21:09:28 +05:00
#endif /* USB_CDNS_HOST */
2021-05-27 00:09:36 +05:00
#endif /* __LINUX_CDNS3_HOST_EXPORT */