staging: comedi: fl512: sample types are unsigned
authorIan Abbott <abbotti@mev.co.uk>
Wed, 16 Oct 2013 13:40:21 +0000 (14:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Oct 2013 19:48:29 +0000 (12:48 -0700)
Sample values in comedi are generally represented as unsigned values.
Change the element type of the `ao_readback[]` member of `struct
fl512_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/fl512.c

index 8d70f64b157478b43c79eb32ad2952962e7316e3..e3ff4c43897978ef7caf355215358bf2595e3a12 100644 (file)
@@ -25,8 +25,7 @@ Configuration options:
 
 #define FL512_SIZE 16          /* the size of the used memory */
 struct fl512_private {
-
-       short ao_readback[2];
+       unsigned short ao_readback[2];
 };
 
 static const struct comedi_lrange range_fl512 = { 4, {