staging: comedi: dt2815: remove subdevice pointer math
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:40:29 +0000 (18:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:06:26 +0000 (20:06 -0700)
commit76c40c470dd0cd6560e3362f087a52830581a767
tree5b647e38297329aa6674c1b0378a2d3d50189e24
parent92af10e1e210f1b9772d98715bb76950137423e2
staging: comedi: dt2815: 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>
drivers/staging/comedi/drivers/dt2815.c