Skip to content

Commit

Permalink
staging: comedi: comedi_subdevice 'io_bits' should be an unsigned int
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jun 19, 2012
1 parent a2714e3 commit d4a7dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/comedidev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d4a7dc8

Please sign in to comment.