[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in usb_control_msg Documentation



On Wed, May 08, 2002 at 10:23:03PM -0400, Chris BeHanna wrote:
> The generated documentation in your Kernel API section contains a
> grievous error:  the return values for usb_control_msg() are listed as
> negative for error, 0 for success.  This is not correct:  a successful
> return for usb_control_msg() will result in a nonnegative integer
> indicating the actual number of bytes sent or received in the "data"
> parameter.
> 
> Please fix this ASAP.  This mistake cost me a lot of time, and I'd hate
> to see others hamstrung by it.

So kind of you to send a patch :)

Also, if you look in 2.5, this is already fixed.

Might I ask what kind of USB driver you wrote?

thanks,

greg k-h
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/