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 <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0522063806
commit
920983458c
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue