blob: 36c468c4f5e90be54e7356d48dc2037476a62994 [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
Andrzej Pietrasiewiczda424312014-05-08 14:06:26 +02008int usb_os_desc_prepare_interf_dir(struct config_group *parent,
9 int n_interf,
10 struct usb_os_desc **desc,
Andrzej Pietrasiewicz14574b52014-06-18 14:24:49 +020011 char **names,
Andrzej Pietrasiewiczda424312014-05-08 14:06:26 +020012 struct module *owner);
13
14static inline struct usb_os_desc *to_usb_os_desc(struct config_item *item)
15{
16 return container_of(to_config_group(item), struct usb_os_desc, group);
17}
18
Andrzej Pietrasiewicz092a4bd2013-09-26 14:38:15 +020019#endif /* USB__GADGET__CONFIGFS__H */