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

29 lines
590 B
C
Raw Normal View History

2021-05-27 00:09:36 +05:00
/* SPDX-License-Identifier: GPL-2.0 */
/*
2021-09-23 21:59:15 +05:00
* Cadence USBSS DRD Driver - Gadget Export APIs.
2021-05-27 00:09:36 +05:00
*
* Copyright (C) 2017 NXP
* Copyright (C) 2017-2018 NXP
*
* Authors: Peter Chen <peter.chen@nxp.com>
*/
#ifndef __LINUX_CDNS3_GADGET_EXPORT
#define __LINUX_CDNS3_GADGET_EXPORT
2021-09-23 21:59:15 +05:00
#ifdef CONFIG_USB_CDNS3_GADGET
2021-05-27 00:09:36 +05:00
2021-09-23 21:59:15 +05:00
int cdns3_gadget_init(struct cdns3 *cdns);
void cdns3_gadget_exit(struct cdns3 *cdns);
2021-05-27 00:09:36 +05:00
#else
2021-09-23 21:59:15 +05:00
static inline int cdns3_gadget_init(struct cdns3 *cdns)
2021-05-27 00:09:36 +05:00
{
return -ENXIO;
}
2021-09-23 21:59:15 +05:00
static inline void cdns3_gadget_exit(struct cdns3 *cdns) { }
2021-05-27 00:09:36 +05:00
2021-09-23 21:59:15 +05:00
#endif
2021-05-27 00:09:36 +05:00
#endif /* __LINUX_CDNS3_GADGET_EXPORT */