staging: comedi: comedi_subdevice 'io_bits' should be an unsigned int
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 18 Jun 2012 21:45:42 +0000 (14:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jun 2012 00:17:47 +0000 (17:17 -0700)
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 <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess: <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedidev.h

index e0f3915..7363fd8 100644 (file)
@@ -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 */