Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-25 Thread David Brownell
> I find the p*_t typedefs handy because they relax me from > the burdon of writing an extra "*" (and forget it). > > Do the p*_t typedefs make the code worse? I think so. They make APIs more complicated and baroque ... extra data types to learn and stumble on. Putting a "p" at the front vs

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-25 Thread Wolfgang Mües
On Monday, 24. December 2001 22:36, Greg KH wrote: > Good point. I'll leave the urb_t typedef alone for now as it's used by > quite a bit of code. The p* typedefs are easy to remove, and I'll do > that. This will break my code =8-( I find the p*_t typedefs handy because they relax me from the

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-25 Thread Alan Cox
> will be patching those, and how soon? It would be a bad idea to instantly > break all custom drivers on this planet! In the case of kdev_t no, because it was designed to be an opaque cookie from day one. ___ [EMAIL PROTECTED] To unsubscribe, use the

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-24 Thread Pete Zaitcev
> > The absolutely worst happens when someone attempts to re-type > > a _t over a large body of existing code, for instance inexpirienced > > coders keep proposing to change kdev_t into a pointer. > > I'd hardly call Andries inexperienced, and in fact he did precisely that > a long time ago but t

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-24 Thread Dmitri
Quoting Alan Cox <[EMAIL PROTECTED]>: > > The absolutely worst happens when someone attempts to re-type > > a _t over a large body of existing code, for instance inexpirienced > > coders keep proposing to change kdev_t into a pointer. > > I'd hardly call Andries inexperienced, and in fact he did

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-24 Thread Alan Cox
> The absolutely worst happens when someone attempts to re-type > a _t over a large body of existing code, for instance inexpirienced > coders keep proposing to change kdev_t into a pointer. I'd hardly call Andries inexperienced, and in fact he did precisely that a long time ago but the work was

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-24 Thread Pete Zaitcev
> From: Wolfgang Mües <[EMAIL PROTECTED]> > Date: Mon, 24 Dec 2001 15:40:04 +0100 > > p* can be removed (I don't like it either), but why the _t? It's a clear > > marking that this is a defined type and it makes the code a tiny bit more > > readable. And usb.h is not the only one using that style

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-24 Thread Greg KH
On Mon, Dec 24, 2001 at 02:11:47PM +0100, Georg Acher wrote: > On Sun, Dec 23, 2001 at 05:49:17PM -0800, Greg KH wrote: > > > Now to try to get rid of those *_t and p* typedefs in usb.h... > > p* can be removed (I don't like it either), but why the _t? It's a clear > marking that this is a defi

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-24 Thread Wolfgang Mües
On Monday, 24. December 2001 14:11, Georg Acher wrote: > On Sun, Dec 23, 2001 at 05:49:17PM -0800, Greg KH wrote: > > Now to try to get rid of those *_t and p* typedefs in usb.h... > > p* can be removed (I don't like it either), but why the _t? It's a clear > marking that this is a defined type an

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-24 Thread Georg Acher
On Sun, Dec 23, 2001 at 05:49:17PM -0800, Greg KH wrote: > Now to try to get rid of those *_t and p* typedefs in usb.h... p* can be removed (I don't like it either), but why the _t? It's a clear marking that this is a defined type and it makes the code a tiny bit more readable. And usb.h is not

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-23 Thread David Brownell
> Now to try to get rid of those *_t and p* typedefs in usb.h... Yes please. Luckily most driver authors don't use them ... :) ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-d

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-23 Thread Greg KH
On Sun, Dec 23, 2001 at 02:24:01AM -0500, Pete Zaitcev wrote: > > > Here's a patch against 2.4.17 that adds documentation for the FILL_*_URB > > macros, and adds the usb_fill_*_urb() inline functions which are in the > > 2.5 tree. > > Why are they inline? We do have macros, so it's not for speed

Re: [linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-23 Thread Pete Zaitcev
> From: Greg KH <[EMAIL PROTECTED]> > To: Marcelo Tosatti <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Date: Fri, 21 Dec 2001 14:22:55 -0800 > Here's a patch against 2.4.17 that adds documentation for the FILL_*_URB > macros, and adds the usb_fill_*_urb() inline functions which are in the > 2.5

[linux-usb-devel] [PATCH 8 of 12] USB usb.h changes

2001-12-22 Thread Greg KH
Hi, Here's a patch against 2.4.17 that adds documentation for the FILL_*_URB macros, and adds the usb_fill_*_urb() inline functions which are in the 2.5 tree. thanks, greg k-h diff -Nru a/include/linux/usb.h b/include/linux/usb.h --- a/include/linux/usb.h Fri Dec 21 12:58:14 2001 +++ b/