From: Ian Abbott Date: Wed, 16 Oct 2013 13:40:20 +0000 (+0100) Subject: staging: comedi: dt3000: sample types are unsigned X-Git-Tag: v3.13-rc1~170^2~235 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37a96e994c31b4ad823861f9858dbdf52ef801a6;p=kernel%2Fkernel-generic.git staging: comedi: dt3000: sample types are unsigned Sample values in comedi are generally represented as unsigned values. Change the type of the `data` variable in `dt3k_ai_empty_fifo()` 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/dt3000.c b/drivers/staging/comedi/drivers/dt3000.c index fec911f..292226e 100644 --- a/drivers/staging/comedi/drivers/dt3000.c +++ b/drivers/staging/comedi/drivers/dt3000.c @@ -331,7 +331,7 @@ static void dt3k_ai_empty_fifo(struct comedi_device *dev, int rear; int count; int i; - short data; + unsigned short data; front = readw(devpriv->io_addr + DPR_AD_Buf_Front); count = front - devpriv->ai_front;