From: Ian Abbott Date: Wed, 16 Oct 2013 13:40:20 +0000 (+0100) Subject: staging: comedi: dt3000: sample types are unsigned X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=37a96e994c31b4ad823861f9858dbdf52ef801a6;p=linux-beck.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 fec911fc8d68..292226eeff92 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;