host.h 527 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __DRIVERS_USB_CHIPIDEA_HOST_H
  3. #define __DRIVERS_USB_CHIPIDEA_HOST_H
  4. #ifdef CONFIG_USB_CHIPIDEA_HOST
  5. int ci_hdrc_host_init(struct ci_hdrc *ci);
  6. void ci_hdrc_host_destroy(struct ci_hdrc *ci);
  7. void ci_hdrc_host_driver_init(void);
  8. #else
  9. static inline int ci_hdrc_host_init(struct ci_hdrc *ci)
  10. {
  11. return -ENXIO;
  12. }
  13. static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
  14. {
  15. }
  16. static void ci_hdrc_host_driver_init(void)
  17. {
  18. }
  19. #endif
  20. #endif /* __DRIVERS_USB_CHIPIDEA_HOST_H */