Skip to contentSkip to conversation

staging: comedi: comedi_subdevice 'io_bits' should be an unsigned int

PATCH New H Hartley Sweeten 1 participant 1 message Jun 18, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Ian Abbott <[email protected]>
Cc Frank Mori Hess: <[email protected]>
Cc Greg Kroah-Hartman: <[email protected]>
---
 drivers/staging/comedi/comedidev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/comedidev.h +1 -1
index e0f3915..7363fd8 100644
@@ -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 */
Signature · 1 line
1.7.11