diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2014-06-18 14:24:49 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-06-19 17:06:48 +0200 |
commit | 14574b546d87a282cc9ea0f43935cee6bfc97bf8 (patch) | |
tree | 8d877c323144572dc6cc5d534f2b0df563845c97 /drivers/usb/gadget/configfs.h | |
parent | usb: gadget: OS descriptors configfs cleanup (diff) | |
download | linux-14574b546d87a282cc9ea0f43935cee6bfc97bf8.tar.xz linux-14574b546d87a282cc9ea0f43935cee6bfc97bf8.zip |
usb: gadget: OS descriptors: provide interface directory names
Function's interface directories need to be created when the function
directory is created, but interface numbers are not known until
the gadget is ready and bound to udc, so we cannot use numbers
as part of interface directory names.
Let the client decide what names to use.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/configfs.h')
-rw-r--r-- | drivers/usb/gadget/configfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/configfs.h b/drivers/usb/gadget/configfs.h index a14ac792c698..36c468c4f5e9 100644 --- a/drivers/usb/gadget/configfs.h +++ b/drivers/usb/gadget/configfs.h @@ -8,6 +8,7 @@ void unregister_gadget_item(struct config_item *item); int usb_os_desc_prepare_interf_dir(struct config_group *parent, int n_interf, struct usb_os_desc **desc, + char **names, struct module *owner); static inline struct usb_os_desc *to_usb_os_desc(struct config_item *item) |