Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8c162c9 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: usbdux: make private data flags bit-fields



Change the flags in the private data to bit-fields to save a bit of
space.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 903f4fde
Loading
Loading
Loading
Loading
+8 −10
Original line number Original line Diff line number Diff line
@@ -223,16 +223,14 @@ struct usbdux_private {
	int16_t *insn_buffer;
	int16_t *insn_buffer;
	/* output buffer for single DA outputs */
	/* output buffer for single DA outputs */
	int16_t *out_buffer;
	int16_t *out_buffer;
	/* is it USB_SPEED_HIGH or not? */

	short int high_speed;
	unsigned int high_speed:1;
	/* asynchronous command is running */
	unsigned int ai_cmd_running:1;
	short int ai_cmd_running;
	unsigned int ai_continous:1;
	short int ao_cmd_running;
	unsigned int ao_cmd_running:1;
	/* pwm is running */
	unsigned int ao_continous:1;
	short int pwm_cmd_running;
	unsigned int pwm_cmd_running:1;
	/* continous acquisition */

	short int ai_continous;
	short int ao_continous;
	/* number of samples to acquire */
	/* number of samples to acquire */
	int ai_sample_count;
	int ai_sample_count;
	int ao_sample_count;
	int ao_sample_count;