[PATCH 00/35] staging: comedi: sample types are unsigned

Greg Kroah-Hartman gregkh at linuxfoundation.org
Wed Oct 16 19:51:32 UTC 2013


On Wed, Oct 16, 2013 at 02:40:03PM +0100, Ian Abbott wrote:
> Sample values in comedi are generally represented as unsigned values.
> Some of the comedi buffer handling functions and various drivers use
> signed short values in places to hold or manipulate 16-bit (or less)
> sample values.  Be a bit more consistent in the use of unsigned types to
> handle sample values.

I've applied these, but in the future, you might want to use the kernel
type 'u16' just to be explicit as to what you want for this api.

thanks,

greg k-h


More information about the devel mailing list