aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2012-12-23 15:10:19 -0500
committerFelipe Balbi <balbi@ti.com>2013-01-21 13:52:46 -0500
commit4c49a5f0ef1bc61395329ea7a9fce2893e97eaa6 (patch)
tree064349fb779ad5d628ea9f9b7b137205c7a14647 /include
parent0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 (diff)
usb: gadget: udc-core: introduce UDC binding by name
This patch adds udc_attach_driver() which allows to bind an UDC which is specified by name to a driver. The name of available UDCs can be obtained from /sys/class/udc. This interface is intended for configfs interface. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/gadget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
index 0af6569b8cc6..62156701e4f1 100644
--- a/include/linux/usb/gadget.h
+++ b/include/linux/usb/gadget.h
@@ -880,6 +880,8 @@ int usb_gadget_unregister_driver(struct usb_gadget_driver *driver);
880 880
881extern int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget); 881extern int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget);
882extern void usb_del_gadget_udc(struct usb_gadget *gadget); 882extern void usb_del_gadget_udc(struct usb_gadget *gadget);
883extern int udc_attach_driver(const char *name,
884 struct usb_gadget_driver *driver);
883 885
884/*-------------------------------------------------------------------------*/ 886/*-------------------------------------------------------------------------*/
885 887