]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: das16m1: remove 'volatile' from private data
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 18:22:49 +0000 (11:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:37:59 +0000 (13:37 -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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das16m1.c

index c252ad22b1b403117a6b16843e86384a32a9e0c4..40365b024b9e21942fada6f9931a7e79be40f95d 100644 (file)
@@ -126,7 +126,7 @@ static const struct comedi_lrange range_das16m1 = {
 
 struct das16m1_private_struct {
        unsigned int control_state;
-       volatile unsigned int adc_count;        /*  number of samples completed */
+       unsigned int adc_count; /*  number of samples completed */
        /* initial value in lower half of hardware conversion counter,
         * needed to keep track of whether new count has been loaded into
         * counter yet (loaded by first sample conversion) */