]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: adv_pci1723: sample types are unsigned
authorIan Abbott <abbotti@mev.co.uk>
Wed, 16 Oct 2013 13:40:11 +0000 (14:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Oct 2013 19:48:18 +0000 (12:48 -0700)
Sample values in comedi are generally represented as unsigned values.
Change the element type of the `ao_data[]` member of `struct
pci1723_private` from `short` to `unsigned short` for consistency.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adv_pci1723.c

index 71321f75d0cdefb483e96f79447181f4633f97a0..bd4f781b4b24a0ac66896c05f15b2c102f69f555 100644 (file)
@@ -105,7 +105,7 @@ TODO:
 
 struct pci1723_private {
        unsigned char da_range[8];      /* D/A output range for each channel */
-       short ao_data[8];       /* data output buffer */
+       unsigned short ao_data[8];      /* data output buffer */
 };
 
 /*