staging: comedi: das16: sample types are unsigned
authorIan Abbott <abbotti@mev.co.uk>
Wed, 16 Oct 2013 13:40:16 +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 type of the `data` variable in `das16_ai_munge()` 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/das16.c

index 30f3995..a8446ca 100644 (file)
@@ -846,7 +846,7 @@ static void das16_ai_munge(struct comedi_device *dev,
                           unsigned int start_chan_index)
 {
        unsigned int i, num_samples = num_bytes / sizeof(short);
-       short *data = array;
+       unsigned short *data = array;
 
        for (i = 0; i < num_samples; i++) {
                data[i] = le16_to_cpu(data[i]);