configfs.h 514 B

123456789101112131415161718192021
  1. #ifndef USB__GADGET__CONFIGFS__H
  2. #define USB__GADGET__CONFIGFS__H
  3. #include <linux/configfs.h>
  4. void unregister_gadget_item(struct config_item *item);
  5. struct config_group *usb_os_desc_prepare_interf_dir(
  6. struct config_group *parent,
  7. int n_interf,
  8. struct usb_os_desc **desc,
  9. char **names,
  10. struct module *owner);
  11. static inline struct usb_os_desc *to_usb_os_desc(struct config_item *item)
  12. {
  13. return container_of(to_config_group(item), struct usb_os_desc, group);
  14. }
  15. #endif /* USB__GADGET__CONFIGFS__H */