onboard_hub.h 584 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_USB_ONBOARD_HUB_H
  3. #define __LINUX_USB_ONBOARD_HUB_H
  4. struct usb_device;
  5. struct list_head;
  6. #if IS_ENABLED(CONFIG_USB_ONBOARD_HUB)
  7. void onboard_hub_create_pdevs(struct usb_device *parent_hub, struct list_head *pdev_list);
  8. void onboard_hub_destroy_pdevs(struct list_head *pdev_list);
  9. #else
  10. static inline void onboard_hub_create_pdevs(struct usb_device *parent_hub,
  11. struct list_head *pdev_list) {}
  12. static inline void onboard_hub_destroy_pdevs(struct list_head *pdev_list) {}
  13. #endif
  14. #endif /* __LINUX_USB_ONBOARD_HUB_H */