GNU Linux-libre 4.19.211-gnu1
[releases.git] / drivers / usb / chipidea / host.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __DRIVERS_USB_CHIPIDEA_HOST_H
3 #define __DRIVERS_USB_CHIPIDEA_HOST_H
4
5 #ifdef CONFIG_USB_CHIPIDEA_HOST
6
7 int ci_hdrc_host_init(struct ci_hdrc *ci);
8 void ci_hdrc_host_destroy(struct ci_hdrc *ci);
9 void ci_hdrc_host_driver_init(void);
10
11 #else
12
13 static inline int ci_hdrc_host_init(struct ci_hdrc *ci)
14 {
15         return -ENXIO;
16 }
17
18 static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
19 {
20
21 }
22
23 static void ci_hdrc_host_driver_init(void)
24 {
25
26 }
27
28 #endif
29
30 #endif /* __DRIVERS_USB_CHIPIDEA_HOST_H */