diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-12-23 15:10:21 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-01-21 13:52:47 -0500 |
commit | 2d5a88990260d226a69acddf22c04f47c267b33a (patch) | |
tree | 131ac7501eade3e1b96136208ba46f20c6e86f13 /include/linux/usb/composite.h | |
parent | a59233407aed54b8a9121cea75d9c6a2a470d8d3 (diff) |
usb: gadget: export composite's setup & disconnect function
The configfs can't use all of composite's hooks because ->bind() and
->unbind() has to be done a little differently. ->disconnect() and
->setup() on the hand can be recycled.
This patch exports them both so configfs can use them.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb/composite.h')
-rw-r--r-- | include/linux/usb/composite.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index bd6d857c12f4..a212ec3e9d69 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h | |||
@@ -398,6 +398,10 @@ extern int usb_string_ids_tab(struct usb_composite_dev *c, | |||
398 | struct usb_string *str); | 398 | struct usb_string *str); |
399 | extern int usb_string_ids_n(struct usb_composite_dev *c, unsigned n); | 399 | extern int usb_string_ids_n(struct usb_composite_dev *c, unsigned n); |
400 | 400 | ||
401 | extern void composite_disconnect(struct usb_gadget *gadget); | ||
402 | extern int composite_setup(struct usb_gadget *gadget, | ||
403 | const struct usb_ctrlrequest *ctrl); | ||
404 | |||
401 | /* | 405 | /* |
402 | * Some systems will need runtime overrides for the product identifiers | 406 | * Some systems will need runtime overrides for the product identifiers |
403 | * published in the device descriptor, either numbers or strings or both. | 407 | * published in the device descriptor, either numbers or strings or both. |