staging: comedi: me4000: make boardinfo flags bit-fields
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 5 Aug 2015 17:44:44 +0000 (10:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Aug 2015 22:03:27 +0000 (15:03 -0700)
Change the boardinfo 'has_counter' and 'ai_trig_analog' flags into
bit-fields to save a bit of space.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/me4000.c

index 008929e8d3fe8a85f43a7c476207942db613004d..cc05c88bf13e96a25606b5d4bb6dcf2566e04357 100644 (file)
@@ -193,8 +193,8 @@ struct me4000_board {
        int ai_nchan;
        int ai_diff_nchan;
        int ai_sh_nchan;
-       int ex_trig_analog;
-       int has_counter;
+       unsigned int ex_trig_analog:1;
+       unsigned int has_counter:1;
 };
 
 static const struct me4000_board me4000_boards[] = {