usb: gadget: udc-core: add "new-style" registration interface
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 23 Jun 2011 12:26:15 +0000 (14:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2011 21:31:13 +0000 (14:31 -0700)
commit352c2dc8b07491bbab77ddf86c20c16a97326ee7
treea1aaa9ab0b95701e4f8aba194bfbbb42df81b572
parentb5738413c96126e8191bc506b403cd55950b8f9a
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>
drivers/usb/gadget/udc-core.c
include/linux/usb/gadget.h