diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-12-23 15:10:05 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-01-21 13:52:42 -0500 |
commit | b473577854fea63055ff9ab84f0f52a3e8aed15e (patch) | |
tree | a3ba2d88a72fa7719fac1afc7a13ce886084af3a /include/linux/usb/composite.h | |
parent | 3249ca22c088c286d6227d8fae9c85a43a8ce9f6 (diff) |
usb: gadget: composite: add usb_remove_function()
This will be used to remove a single function from a given config. Right
now "ignore" that an error at ->bind() time and cleanup later during
composite_unbind() / remove_config().
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 3834e3330b23..8c7a6295ae78 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h | |||
@@ -461,6 +461,7 @@ struct usb_configuration *usb_get_config(struct usb_composite_dev *cdev, | |||
461 | int val); | 461 | int val); |
462 | int usb_add_config_only(struct usb_composite_dev *cdev, | 462 | int usb_add_config_only(struct usb_composite_dev *cdev, |
463 | struct usb_configuration *config); | 463 | struct usb_configuration *config); |
464 | void usb_remove_function(struct usb_configuration *c, struct usb_function *f); | ||
464 | 465 | ||
465 | #define DECLARE_USB_FUNCTION(_name, _inst_alloc, _func_alloc) \ | 466 | #define DECLARE_USB_FUNCTION(_name, _inst_alloc, _func_alloc) \ |
466 | static struct usb_function_driver _name ## usb_func = { \ | 467 | static struct usb_function_driver _name ## usb_func = { \ |