staging: comedi: ni_labpc: remove 'volatile' from private data
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 22 Mar 2013 16:40:58 +0000 (09:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:39:21 +0000 (11:39 -0700)
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>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_labpc.h

index 6be3a11a6ade4c7b8aed72ce45daff5bb5b9261d..03280936c8a9cb5eff4ed54ff9bd81dfb1e10a68 100644 (file)
@@ -56,19 +56,19 @@ struct labpc_boardinfo {
 struct labpc_private {
        struct mite_struct *mite;       /*  for mite chip on pci-1200 */
        /*  number of data points left to be taken */
-       volatile unsigned long long count;
+       unsigned long long count;
        /*  software copy of analog output values */
        unsigned int ao_value[NUM_AO_CHAN];
        /*  software copys of bits written to command registers */
-       volatile unsigned int command1_bits;
-       volatile unsigned int command2_bits;
-       volatile unsigned int command3_bits;
-       volatile unsigned int command4_bits;
-       volatile unsigned int command5_bits;
-       volatile unsigned int command6_bits;
+       unsigned int command1_bits;
+       unsigned int command2_bits;
+       unsigned int command3_bits;
+       unsigned int command4_bits;
+       unsigned int command5_bits;
+       unsigned int command6_bits;
        /*  store last read of board status registers */
-       volatile unsigned int status1_bits;
-       volatile unsigned int status2_bits;
+       unsigned int status1_bits;
+       unsigned int status2_bits;
        /*
         * value to load into board's counter a0 (conversion pacing) for timed
         * conversions