blob: 0f12f131bdd3f22671eaf170476e2511950fa1be [file] [log] [blame]
Alexander Shishkineb70e5a2012-05-11 17:25:54 +03001#ifndef __DRIVERS_USB_CHIPIDEA_HOST_H
2#define __DRIVERS_USB_CHIPIDEA_HOST_H
3
4#ifdef CONFIG_USB_CHIPIDEA_HOST
5
Alexander Shishkin8e229782013-06-24 14:46:36 +03006int ci_hdrc_host_init(struct ci_hdrc *ci);
Peter Chen3f124d22013-08-14 12:44:07 +03007void ci_hdrc_host_destroy(struct ci_hdrc *ci);
Peter Chen2f01a332015-07-21 09:51:29 +08008void ci_hdrc_host_driver_init(void);
Alexander Shishkineb70e5a2012-05-11 17:25:54 +03009
10#else
11
Alexander Shishkin8e229782013-06-24 14:46:36 +030012static inline int ci_hdrc_host_init(struct ci_hdrc *ci)
Alexander Shishkineb70e5a2012-05-11 17:25:54 +030013{
14 return -ENXIO;
15}
16
Peter Chen3f124d22013-08-14 12:44:07 +030017static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
18{
19
20}
21
Peter Chen2f01a332015-07-21 09:51:29 +080022static void ci_hdrc_host_driver_init(void)
23{
24
25}
26
Alexander Shishkineb70e5a2012-05-11 17:25:54 +030027#endif
28
29#endif /* __DRIVERS_USB_CHIPIDEA_HOST_H */