summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/gadget-export.h
blob: e75a17e1dd7563ab4c1f63fe978988492a2eaed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * 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 */