On Fri, 13 May 2011, Felipe Balbi wrote: > From: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> > > peripheral drivers are using usb_add_gadget()/usb_del_gadget() to > register/unregister to the udc-core. > > gadget (function) drivers will use usb_gadget_register_driver() / > usb_gadget_unregister_driver() to register themself. The probe function > is moved to the struct. > > The udc-core will take the first available gadget driver and attach > function driver which is calling usb_gadget_register_driver(). This is > the same behaviour we have right now. > > Rigth now, only the dummy_hcd is converted, other will follow in this > patch. > > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> > Signed-off-by: Felipe Balbi <balbi@xxxxxx> > --- > drivers/usb/gadget/composite.c | 3 ++- > drivers/usb/gadget/dbgp.c | 3 ++- > drivers/usb/gadget/dummy_hcd.c | 31 ++++++++++++++++++++++--------- > drivers/usb/gadget/file_storage.c | 3 ++- > drivers/usb/gadget/gmidi.c | 3 ++- > drivers/usb/gadget/inode.c | 6 ++++-- > drivers/usb/gadget/printer.c | 5 +++-- > include/linux/usb/gadget.h | 2 -- > 8 files changed, 37 insertions(+), 19 deletions(-) Unlike what the patch title says, these are not _all_ of the gadget drivers. And dummy-hcd isn't a gadget driver at all; it should be changed in a separate patch. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html