configfs.h 553 B

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