staging: comedi: dt282x: remove 'volatile' on private data variables
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 20 Jun 2014 20:12:40 +0000 (13:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:08:18 +0000 (20:08 -0400)
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: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt282x.c

index dcc4055bee710541ce4811b9da9fc42510f5bc57..5ae15bcccb5e46b387ddb2dd22000b95fed6ea6d 100644 (file)
@@ -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;
 };