On Thu, 2007-02-22 at 10:37 -0500, ext Alan Stern wrote: > On Thu, 22 Feb 2007, Felipe Balbi wrote: > > > When I wrote "attributions" I meant: > > struct usb_gadget *gadget = cdev->current_func->gadget; > > > > This I already turned up into: > > struct usb_gadget *gadget = get_composite_gadget(cdev); > > > > And other instructions like this one... > > The one thing I didn't like about your changes was all the #ifdef lines > added to the function definitions. Perhaps you can come up with some > typedefs and inline routines (whose definitions would depend on whether or > not the composite-gadget option was enabled) to make the code look simple > again. Actually I was thinking about porting the g_ module into function drivers for good.
I'm wondering if a composite device with only one function would become a simple gadget anyway... But the typedefs and inline functions are good too... Thanks Alan > > Alan Stern > -- Best Regards, Felipe Balbi [EMAIL PROTECTED] Nokia Institute of Technology - INdT Kernel Developers Team +55 92 2126 1003 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
