staging: comedi: usbduxsigma: change private data flags to bit fields
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 20:02:25 +0000 (13:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:41:04 +0000 (20:41 +0900)
Change the type of all the true/false flags in the private data to
bit fields.

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

index ae56bcb5c81a3d95e594e099988cd2bc1a47917a..d955e85bdde07c0914922f263ec6d30a7494822f 100644 (file)
@@ -176,16 +176,14 @@ struct usbduxsigma_private {
        int8_t *insnBuffer;
        /* output buffer for single DA outputs */
        int16_t *outBuffer;
-       /* is it USB_SPEED_HIGH or not? */
-       short int high_speed;
-       /* asynchronous command is running */
-       short int ai_cmd_running;
-       short int ao_cmd_running;
-       /* pwm is running */
-       short int pwm_cmd_running;
-       /* continuous acquisition */
-       short int ai_continuous;
-       short int ao_continuous;
+
+       unsigned high_speed:1;
+       unsigned ai_cmd_running:1;
+       unsigned ai_continuous:1;
+       unsigned ao_cmd_running:1;
+       unsigned ao_continuous:1;
+       unsigned pwm_cmd_running:1;
+
        /* number of samples to acquire */
        int ai_sample_count;
        int ao_sample_count;