blob: 540d5e92ed2259149f736f4bd60e154ccff6bb37 [file] [log] [blame]
Andrzej Pietrasiewicz092a4bd2013-09-26 14:38:15 +02001#ifndef USB__GADGET__CONFIGFS__H
2#define USB__GADGET__CONFIGFS__H
3
Andrzej Pietrasiewiczda424312014-05-08 14:06:26 +02004#include <linux/configfs.h>
5
Andrzej Pietrasiewicz092a4bd2013-09-26 14:38:15 +02006void unregister_gadget_item(struct config_item *item);
7
Andrew Gabbasovff747452017-09-30 08:54:52 -07008struct config_group *usb_os_desc_prepare_interf_dir(
9 struct config_group *parent,
10 int n_interf,
11 struct usb_os_desc **desc,
12 char **names,
13 struct module *owner);
Andrzej Pietrasiewiczda424312014-05-08 14:06:26 +020014
15static inline struct usb_os_desc *to_usb_os_desc(struct config_item *item)
16{
17 return container_of(to_config_group(item), struct usb_os_desc, group);
18}
19
Andrzej Pietrasiewicz092a4bd2013-09-26 14:38:15 +020020#endif /* USB__GADGET__CONFIGFS__H */