1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2092a4bd0SAndrzej Pietrasiewicz #ifndef USB__GADGET__CONFIGFS__H 3092a4bd0SAndrzej Pietrasiewicz #define USB__GADGET__CONFIGFS__H 4092a4bd0SAndrzej Pietrasiewicz 5da424314SAndrzej Pietrasiewicz #include <linux/configfs.h> 6da424314SAndrzej Pietrasiewicz 7092a4bd0SAndrzej Pietrasiewicz void unregister_gadget_item(struct config_item *item); 8092a4bd0SAndrzej Pietrasiewicz 9ff74745eSAndrew Gabbasov struct config_group *usb_os_desc_prepare_interf_dir( 10ff74745eSAndrew Gabbasov struct config_group *parent, 11da424314SAndrzej Pietrasiewicz int n_interf, 12da424314SAndrzej Pietrasiewicz struct usb_os_desc **desc, 1314574b54SAndrzej Pietrasiewicz char **names, 14da424314SAndrzej Pietrasiewicz struct module *owner); 15da424314SAndrzej Pietrasiewicz to_usb_os_desc(struct config_item * item)16da424314SAndrzej Pietrasiewiczstatic inline struct usb_os_desc *to_usb_os_desc(struct config_item *item) 17da424314SAndrzej Pietrasiewicz { 18da424314SAndrzej Pietrasiewicz return container_of(to_config_group(item), struct usb_os_desc, group); 19da424314SAndrzej Pietrasiewicz } 20da424314SAndrzej Pietrasiewicz 21092a4bd0SAndrzej Pietrasiewicz #endif /* USB__GADGET__CONFIGFS__H */ 22