18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Cadence USBSS DRD Driver - Gadget Export APIs. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2017 NXP 68c2ecf20Sopenharmony_ci * Copyright (C) 2017-2018 NXP 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Authors: Peter Chen <peter.chen@nxp.com> 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#ifndef __LINUX_CDNS3_GADGET_EXPORT 118c2ecf20Sopenharmony_ci#define __LINUX_CDNS3_GADGET_EXPORT 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#ifdef CONFIG_USB_CDNS3_GADGET 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciint cdns3_gadget_init(struct cdns3 *cdns); 168c2ecf20Sopenharmony_civoid cdns3_gadget_exit(struct cdns3 *cdns); 178c2ecf20Sopenharmony_ci#else 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_cistatic inline int cdns3_gadget_init(struct cdns3 *cdns) 208c2ecf20Sopenharmony_ci{ 218c2ecf20Sopenharmony_ci return -ENXIO; 228c2ecf20Sopenharmony_ci} 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_cistatic inline void cdns3_gadget_exit(struct cdns3 *cdns) { } 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#endif 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif /* __LINUX_CDNS3_GADGET_EXPORT */ 29