Re: [PATCH] Add usb_setup_{control, bulk, int}_urb helpers

Pete Zaitcev <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Red Hat, Inc.
Message-ID <[email protected]>
On Tue, 26 Jun 2007 03:14:22 +0200, Marcel Holtmann <[email protected]> wrote:

> while I was creating this patch, I was thinking about its usefulness. It
> will make the drivers more simpler, but still every driver that is gonna
> use it has to allocate the URB itself. So why not go one step ahead and
> create usb_alloc_{control,bulk,int}_urb helpers that will allocate the
> URB, its transfer buffer set the appropriate flags.

Sounds even more useful. Better abandon the halfway wrappers for the new
ones. Another thing I'd think may be useful is to take the endpoint
address instead of the pipe, because the pipe type is known to each
wrapper, right?

BTW, you sure like empty lines...

-- Pete

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[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.