Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef USB__GADGET__CONFIGFS__H
0003 #define USB__GADGET__CONFIGFS__H
0004 
0005 #include <linux/configfs.h>
0006 
0007 void unregister_gadget_item(struct config_item *item);
0008 
0009 struct config_group *usb_os_desc_prepare_interf_dir(
0010         struct config_group *parent,
0011         int n_interf,
0012         struct usb_os_desc **desc,
0013         char **names,
0014         struct module *owner);
0015 
0016 static inline struct usb_os_desc *to_usb_os_desc(struct config_item *item)
0017 {
0018     return container_of(to_config_group(item), struct usb_os_desc, group);
0019 }
0020 
0021 #endif /*  USB__GADGET__CONFIGFS__H */