Loading...
1#ifndef USB__GADGET__CONFIGFS__H
2#define USB__GADGET__CONFIGFS__H
3
4#include <linux/configfs.h>
5
6void unregister_gadget_item(struct config_item *item);
7
8int usb_os_desc_prepare_interf_dir(struct config_group *parent,
9 int n_interf,
10 struct usb_os_desc **desc,
11 char **names,
12 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
19#endif /* USB__GADGET__CONFIGFS__H */
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef USB__GADGET__CONFIGFS__H
3#define USB__GADGET__CONFIGFS__H
4
5#include <linux/configfs.h>
6
7void unregister_gadget_item(struct config_item *item);
8
9struct 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);
15
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
21#endif /* USB__GADGET__CONFIGFS__H */