USB: cdc-acm: make bitfields unsigned
authorRandy Dunlap <randy.dunlap@oracle.com>
Tue, 2 Mar 2010 22:52:33 +0000 (14:52 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:31 +0000 (13:21 -0700)
Fix usb/class sparse warnings:

drivers/usb/class/cdc-acm.h:128:34: error: dubious one-bit signed bitfield
drivers/usb/class/cdc-acm.h:129:24: error: dubious one-bit signed bitfield

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-acm.h

index 4a8e87ec6ce9de397882907827828de329851a09..5eeb570b9a617416c672c039339b8ff50a9cad2a 100644 (file)
@@ -124,8 +124,8 @@ struct acm {
        unsigned char clocal;                           /* termios CLOCAL */
        unsigned int ctrl_caps;                         /* control capabilities from the class specific header */
        unsigned int susp_count;                        /* number of suspended interfaces */
-       int combined_interfaces:1;                      /* control and data collapsed */
-       int is_int_ep:1;                                /* interrupt endpoints contrary to spec used */
+       unsigned int combined_interfaces:1;             /* control and data collapsed */
+       unsigned int is_int_ep:1;                       /* interrupt endpoints contrary to spec used */
        u8 bInterval;
        struct acm_wb *delayed_wb;                      /* write queued for a device about to be woken */
 };