host.h 402 B

123456789101112131415161718192021222324
  1. #ifndef __DRIVERS_USB_CHIPIDEA_HOST_H
  2. #define __DRIVERS_USB_CHIPIDEA_HOST_H
  3. #ifdef CONFIG_USB_CHIPIDEA_HOST
  4. int ci_hdrc_host_init(struct ci_hdrc *ci);
  5. void ci_hdrc_host_destroy(struct ci_hdrc *ci);
  6. #else
  7. static inline int ci_hdrc_host_init(struct ci_hdrc *ci)
  8. {
  9. return -ENXIO;
  10. }
  11. static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
  12. {
  13. }
  14. #endif
  15. #endif /* __DRIVERS_USB_CHIPIDEA_HOST_H */