summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-09-05 18:54:19 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-05 20:06:30 -0700
commit623733ffc0432a8f76667a1ddcdc2ba4c57aa2e3 (patch)
treebd7426a47092a62a2a660f22755be3ac52d5e3a0
parent86bb856a0264de6e1cab46539193444fe2ed2344 (diff)
downloadtalos-op-linux-623733ffc0432a8f76667a1ddcdc2ba4c57aa2e3.tar.gz
talos-op-linux-623733ffc0432a8f76667a1ddcdc2ba4c57aa2e3.zip
staging: comedi: pcmda12: 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/pcmda12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/pcmda12.c b/drivers/staging/comedi/drivers/pcmda12.c
index 291ce7c1bdb1..28af8f6873eb 100644
--- a/drivers/staging/comedi/drivers/pcmda12.c
+++ b/drivers/staging/comedi/drivers/pcmda12.c
@@ -195,7 +195,7 @@ static int pcmda12_attach(struct comedi_device *dev,
if (ret)
return ret;
- s = dev->subdevices;
+ s = &dev->subdevices[0];
s->private = NULL;
s->maxdata = (0x1 << BITS) - 1;
s->range_table = &pcmda12_ranges;
OpenPOWER on IntegriCloud