From: Ian Abbott Date: Wed, 16 Oct 2013 13:40:16 +0000 (+0100) Subject: staging: comedi: das16: sample types are unsigned X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=920983458cbf4213e8a99567d8d22c3721723cd1;p=linux-beck.git staging: comedi: das16: sample types are unsigned 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/das16.c b/drivers/staging/comedi/drivers/das16.c index 30f3995d7297..a8446ca04110 100644 --- a/drivers/staging/comedi/drivers/das16.c +++ b/drivers/staging/comedi/drivers/das16.c @@ -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]);