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