blob: 3b6f5298b2e830904bddb4078c6a7bd35c91b42c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Andrzej Pietrasiewicz092a4bd2013-09-26 14:38:15 +02002#ifndef USB__GADGET__CONFIGFS__H
3#define USB__GADGET__CONFIGFS__H
4
Andrzej Pietrasiewiczda424312014-05-08 14:06:26 +02005#include <linux/configfs.h>
6
Andrzej Pietrasiewicz092a4bd2013-09-26 14:38:15 +02007void unregister_gadget_item(struct config_item *item);
8
Andrew Gabbasovff747452017-09-30 08:54:52 -07009struct config_group *usb_os_desc_prepare_interf_dir(
10 struct config_group *parent,
11 int n_interf,
12 struct usb_os_desc **desc,
13 char **names,
14 struct module *owner);
Andrzej Pietrasiewiczda424312014-05-08 14:06:26 +020015
16static inline struct usb_os_desc *to_usb_os_desc(struct config_item *item)
17{
18 return container_of(to_config_group(item), struct usb_os_desc, group);
19}
20
Andrzej Pietrasiewicz092a4bd2013-09-26 14:38:15 +020021#endif /* USB__GADGET__CONFIGFS__H */