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

staging: comedi: das16m1: 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 6691844c
...@@ -126,7 +126,7 @@ static const struct comedi_lrange range_das16m1 = { ...@@ -126,7 +126,7 @@ static const struct comedi_lrange range_das16m1 = {
struct das16m1_private_struct { struct das16m1_private_struct {
unsigned int control_state; 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, /* initial value in lower half of hardware conversion counter,
* needed to keep track of whether new count has been loaded into * needed to keep track of whether new count has been loaded into
* counter yet (loaded by first sample conversion) */ * counter yet (loaded by first sample conversion) */
......
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