28 lines
449 B
C
28 lines
449 B
C
/*
|
|
* Copyright 2018 NXP
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __CDNS3_GADGET_EXPORT_H
|
|
#define __CDNS3_GADGET_EXPORT_H
|
|
|
|
#ifdef CONFIG_USB_CDNS3_GADGET
|
|
|
|
int cdns3_gadget_init(struct cdns3 *cdns);
|
|
void cdns3_gadget_remove(struct cdns3 *cdns);
|
|
#else
|
|
|
|
static inline int cdns3_gadget_init(struct cdns3 *cdns)
|
|
{
|
|
return -ENXIO;
|
|
}
|
|
|
|
static inline void cdns3_gadget_remove(struct cdns3 *cdns)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* __CDNS3_GADGET_EXPORT_H */
|