]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 30f3995d729709ef561f7db2f274b2db5ef50131..a8446ca041106b8987ea16daa9b39e09d8ed590b 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]);