]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: gsc_hpdi: remove 'volatile' from the private data members
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 13 Mar 2014 21:16:26 +0000 (14:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:19:50 +0000 (14:19 -0700)
As reported by checkpatch.pl, the private data members do not need
the volatile tag. Remove them.

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/gsc_hpdi.c

index aaf6283e5aaf38b69d2fd0c445170d4c5ea786bd..1686c1104f616bd819585a5c39312bc3cbcc8a2d 100644 (file)
@@ -199,12 +199,12 @@ struct hpdi_private {
        /* pointer to start of buffers indexed by descriptor */
        uint32_t *desc_dio_buffer[NUM_DMA_DESCRIPTORS];
        /* index of the dma descriptor that is currently being used */
-       volatile unsigned int dma_desc_index;
+       unsigned int dma_desc_index;
        unsigned int tx_fifo_size;
        unsigned int rx_fifo_size;
-       volatile unsigned long dio_count;
+       unsigned long dio_count;
        /* number of bytes at which to generate COMEDI_CB_BLOCK events */
-       volatile unsigned int block_size;
+       unsigned int block_size;
 };
 
 static void gsc_hpdi_drain_dma(struct comedi_device *dev, unsigned int channel)