aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-09-05 21:54:00 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-05 23:06:30 -0400
commit86bb856a0264de6e1cab46539193444fe2ed2344 (patch)
tree633f9f3d65febb4a5e289b922b326cd086215fd3
parentedb9dac794678286c171583aacc673cf60a9dbc0 (diff)
staging: comedi: pcmad: remove subdevice pointer math
Convert the comedi_subdevice access from pointer math to array access. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/pcmad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/pcmad.c b/drivers/staging/comedi/drivers/pcmad.c
index 54d19c943967..5efeb9205c2e 100644
--- a/drivers/staging/comedi/drivers/pcmad.c
+++ b/drivers/staging/comedi/drivers/pcmad.c
@@ -127,7 +127,7 @@ static int pcmad_attach(struct comedi_device *dev, struct comedi_devconfig *it)
127 127
128 dev->board_name = board->name; 128 dev->board_name = board->name;
129 129
130 s = dev->subdevices + 0; 130 s = &dev->subdevices[0];
131 s->type = COMEDI_SUBD_AI; 131 s->type = COMEDI_SUBD_AI;
132 s->subdev_flags = SDF_READABLE | AREF_GROUND; 132 s->subdev_flags = SDF_READABLE | AREF_GROUND;
133 s->n_chan = 16; /* XXX */ 133 s->n_chan = 16; /* XXX */