net: DCB: Validate DCB_ATTR_DCB_BUFFER argument
[linux/fpc-iii.git] / drivers / usb / cdns3 / gadget-export.h
blob577469eee961d4f217ed7622df019c026efa35e5
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Cadence USBSS DRD Driver - Gadget Export APIs.
5 * Copyright (C) 2017 NXP
6 * Copyright (C) 2017-2018 NXP
8 * Authors: Peter Chen <peter.chen@nxp.com>
9 */
10 #ifndef __LINUX_CDNS3_GADGET_EXPORT
11 #define __LINUX_CDNS3_GADGET_EXPORT
13 #ifdef CONFIG_USB_CDNS3_GADGET
15 int cdns3_gadget_init(struct cdns3 *cdns);
16 void cdns3_gadget_exit(struct cdns3 *cdns);
17 #else
19 static inline int cdns3_gadget_init(struct cdns3 *cdns)
21 return -ENXIO;
24 static inline void cdns3_gadget_exit(struct cdns3 *cdns) { }
26 #endif
28 #endif /* __LINUX_CDNS3_GADGET_EXPORT */