]> git.ipfire.org Git - people/arne_f/kernel.git/blame - drivers/usb/chipidea/host.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[people/arne_f/kernel.git] / drivers / usb / chipidea / host.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
eb70e5ab
AS
2#ifndef __DRIVERS_USB_CHIPIDEA_HOST_H
3#define __DRIVERS_USB_CHIPIDEA_HOST_H
4
5#ifdef CONFIG_USB_CHIPIDEA_HOST
6
8e22978c 7int ci_hdrc_host_init(struct ci_hdrc *ci);
3f124d23 8void ci_hdrc_host_destroy(struct ci_hdrc *ci);
2f01a33b 9void ci_hdrc_host_driver_init(void);
eb70e5ab
AS
10
11#else
12
8e22978c 13static inline int ci_hdrc_host_init(struct ci_hdrc *ci)
eb70e5ab
AS
14{
15 return -ENXIO;
16}
17
3f124d23
PC
18static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
19{
20
21}
22
2f01a33b
PC
23static void ci_hdrc_host_driver_init(void)
24{
25
26}
27
eb70e5ab
AS
28#endif
29
30#endif /* __DRIVERS_USB_CHIPIDEA_HOST_H */