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

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

staging: comedi: das800: remove 'volatile' on private data variables



As indicated by checkpatch.pl, "WARNING: Use of volatile is usually
wrong: ...". The variables in the private data that are marked
volatile don't need to be. Remove the volatile.

Also, cleanup the comments to avoid > 80 char lines.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c1a59171
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -225,11 +225,11 @@ static const struct das800_board das800_boards[] = {
};

struct das800_private {
	volatile unsigned int count;	/* number of data points left to be taken */
	volatile int forever;	/* flag indicating whether we should take data forever */
	unsigned int divisor1;	/* value to load into board's counter 1 for timed conversions */
	unsigned int divisor2;	/* value to load into board's counter 2 for timed conversions */
	volatile int do_bits;	/* digital output bits */
	unsigned int count;	/* number of data points left to be taken */
	int forever;		/* flag that we should take data forever */
	unsigned int divisor1;	/* counter 1 value for timed conversions */
	unsigned int divisor2;	/* counter 2 value for timed conversions */
	int do_bits;		/* digital output bits */
};

static void das800_ind_write(struct comedi_device *dev,