Commit 04a4da61 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: das1800: remove 'volatile' from private data

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>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e3ebc55f
...@@ -421,7 +421,7 @@ static const struct das1800_board das1800_boards[] = { ...@@ -421,7 +421,7 @@ static const struct das1800_board das1800_boards[] = {
}; };
struct das1800_private { struct das1800_private {
volatile unsigned int count; /* number of data points left to be taken */ unsigned int count; /* number of data points left to be taken */
unsigned int divisor1; /* value to load into board's counter 1 for timed conversions */ 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 */ unsigned int divisor2; /* value to load into board's counter 2 for timed conversions */
int irq_dma_bits; /* bits for control register b */ int irq_dma_bits; /* bits for control register b */
...@@ -430,7 +430,7 @@ struct das1800_private { ...@@ -430,7 +430,7 @@ struct das1800_private {
int dma_bits; int dma_bits;
unsigned int dma0; /* dma channels used */ unsigned int dma0; /* dma channels used */
unsigned int dma1; unsigned int dma1;
volatile unsigned int dma_current; /* dma channel currently in use */ unsigned int dma_current; /* dma channel currently in use */
uint16_t *ai_buf0; /* pointers to dma buffers */ uint16_t *ai_buf0; /* pointers to dma buffers */
uint16_t *ai_buf1; uint16_t *ai_buf1;
uint16_t *dma_current_buf; /* pointer to dma buffer currently being used */ uint16_t *dma_current_buf; /* pointer to dma buffer currently being used */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment