From: Ian Abbott Date: Wed, 16 Oct 2013 13:40:25 +0000 (+0100) Subject: staging: comedi: ni_labpc: sample types are unsigned X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c0edd2c62765e76a03de48722d3d171aa6dd584a;p=linux-beck.git staging: comedi: ni_labpc: sample types are unsigned Sample values in comedi are generally represented as unsigned values. Change the type of the `data` variable in `labpc_ai_cmd()` 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/ni_labpc.c b/drivers/staging/comedi/drivers/ni_labpc.c index e91570dd6b0d..0512445df08e 100644 --- a/drivers/staging/comedi/drivers/ni_labpc.c +++ b/drivers/staging/comedi/drivers/ni_labpc.c @@ -893,7 +893,7 @@ static int labpc_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) static int labpc_drain_fifo(struct comedi_device *dev) { struct labpc_private *devpriv = dev->private; - short data; + unsigned short data; struct comedi_async *async = dev->read_subdev->async; const int timeout = 10000; unsigned int i;