From: H Hartley Sweeten Date: Mon, 18 Jun 2012 21:45:42 +0000 (-0700) Subject: staging: comedi: comedi_subdevice 'io_bits' should be an unsigned int X-Git-Tag: v3.6-rc1~100^2~721 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4a7dc85289306d019378bac18fd88f35dc81b51;p=platform%2Fkernel%2Flinux-3.10.git staging: comedi: comedi_subdevice 'io_bits' should be an unsigned int The 'io_bits' variable in the comedi_subdevice struct is a bitmask of the input/output configuration of the the subdevice. It should be an unsigned int to correctly represent this. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Frank Mori Hess: Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h index e0f3915..7363fd8 100644 --- a/drivers/staging/comedi/comedidev.h +++ b/drivers/staging/comedi/comedidev.h @@ -78,7 +78,7 @@ struct comedi_subdevice { unsigned runflags; spinlock_t spin_lock; - int io_bits; + unsigned int io_bits; unsigned int maxdata; /* if maxdata==0, use list */ const unsigned int *maxdata_list; /* list is channel specific */