Andrzej Pietrasiewicz | 092a4bd | 2013-09-26 14:38:15 +0200 | [diff] [blame] | 1 | #ifndef USB__GADGET__CONFIGFS__H |
| 2 | #define USB__GADGET__CONFIGFS__H |
| 3 | |
Andrzej Pietrasiewicz | da42431 | 2014-05-08 14:06:26 +0200 | [diff] [blame] | 4 | #include <linux/configfs.h> |
| 5 | |
Andrzej Pietrasiewicz | 092a4bd | 2013-09-26 14:38:15 +0200 | [diff] [blame] | 6 | void unregister_gadget_item(struct config_item *item); |
| 7 | |
Andrzej Pietrasiewicz | da42431 | 2014-05-08 14:06:26 +0200 | [diff] [blame] | 8 | int usb_os_desc_prepare_interf_dir(struct config_group *parent, |
| 9 | int n_interf, |
| 10 | struct usb_os_desc **desc, |
| 11 | struct module *owner); |
| 12 | |
| 13 | static inline struct usb_os_desc *to_usb_os_desc(struct config_item *item) |
| 14 | { |
| 15 | return container_of(to_config_group(item), struct usb_os_desc, group); |
| 16 | } |
| 17 | |
Andrzej Pietrasiewicz | 092a4bd | 2013-09-26 14:38:15 +0200 | [diff] [blame] | 18 | #endif /* USB__GADGET__CONFIGFS__H */ |