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

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

staging: comedi: dt282x: 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.

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 804ee9ac
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -330,21 +330,21 @@ struct dt282x_private {

	unsigned short ao[2];

	volatile int dacsr;	/* software copies of registers */
	volatile int adcsr;
	volatile int supcsr;
	int dacsr;	/* software copies of registers */
	int adcsr;
	int supcsr;

	volatile int ntrig;
	volatile int nread;
	int ntrig;
	int nread;

	struct {
		int chan;
		unsigned short *buf;	/* DMA buffer */
		volatile int size;	/* size of current transfer */
		int size;	/* size of current transfer */
	} dma[2];
	int dma_maxsize;	/* max size of DMA transfer (in bytes) */
	int usedma;		/* driver uses DMA              */
	volatile int current_dma_index;
	int current_dma_index;
	int dma_dir;
};