Re: [RFC] [PATCH 0/5]: Composite Devices Support

Felipe Balbi <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <1172158849.6704.43.camel@balbi>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.