Re: [PATCH 6/9] usb/gadget: remove global struct usb_composite_driver in composite

2012-08-22 Thread Felipe Balbi
On Wed, Aug 15, 2012 at 09:59:16PM +0200, Sebastian Andrzej Siewior wrote: > The direct user of the gadget driver (composite, dbgp, inode, > file_storage) keeps a global variable where it stores a pointer to > something which identifies the "current" instance from the time calling > usb_gadget_prob

[PATCH 6/9] usb/gadget: remove global struct usb_composite_driver in composite

2012-08-15 Thread Sebastian Andrzej Siewior
The direct user of the gadget driver (composite, dbgp, inode, file_storage) keeps a global variable where it stores a pointer to something which identifies the "current" instance from the time calling usb_gadget_probe_driver() and later in its ->bind() callback. This patch passes the struct usb_gad