summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/configfs.h
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2014-06-18 12:24:49 (GMT)
committerFelipe Balbi <balbi@ti.com>2014-06-19 15:06:48 (GMT)
commit14574b546d87a282cc9ea0f43935cee6bfc97bf8 (patch)
tree8d877c323144572dc6cc5d534f2b0df563845c97 /drivers/usb/gadget/configfs.h
parentfe00b138295650fc46670b68342029b9fc391c62 (diff)
downloadlinux-14574b546d87a282cc9ea0f43935cee6bfc97bf8.tar.xz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/configfs.h b/drivers/usb/gadget/configfs.h
index a14ac79..36c468c 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)