aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/gadget.h
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2011-06-23 08:26:15 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-01 17:31:13 -0400
commit352c2dc8b07491bbab77ddf86c20c16a97326ee7 (patch)
treea1aaa9ab0b95701e4f8aba194bfbbb42df81b572 /include/linux/usb/gadget.h
parentb5738413c96126e8191bc506b403cd55950b8f9a (diff)
usb: gadget: udc-core: add "new-style" registration interface
udc_start() should only trigger the internal state machine and make minimal house keeping. Before that call udc-core calls the bind() callback and after the callback the pullup(). udc_stop() is simillar, udc-core calls pullup(), unbind() and finally udc_stop(). Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb/gadget.h')
-rw-r--r--include/linux/usb/gadget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
index afb67d997f0c..087f4b931833 100644
--- a/include/linux/usb/gadget.h
+++ b/include/linux/usb/gadget.h
@@ -459,6 +459,12 @@ struct usb_gadget_ops {
459 int (*ioctl)(struct usb_gadget *, 459 int (*ioctl)(struct usb_gadget *,
460 unsigned code, unsigned long param); 460 unsigned code, unsigned long param);
461 void (*get_config_params)(struct usb_dcd_config_params *); 461 void (*get_config_params)(struct usb_dcd_config_params *);
462 int (*udc_start)(struct usb_gadget *,
463 struct usb_gadget_driver *);
464 int (*udc_stop)(struct usb_gadget *,
465 struct usb_gadget_driver *);
466
467 /* Those two are deprecated */
462 int (*start)(struct usb_gadget_driver *, 468 int (*start)(struct usb_gadget_driver *,
463 int (*bind)(struct usb_gadget *)); 469 int (*bind)(struct usb_gadget *));
464 int (*stop)(struct usb_gadget_driver *); 470 int (*stop)(struct usb_gadget_driver *);