staging: comedi: adq12b: remove subdevice pointer math
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:26:36 +0000 (18:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:01:36 +0000 (20:01 -0700)
commit4fe92e16060e24dcf84730307e925e3b1a4302cd
tree528393a8d55e62b7b39e922d84e35eabc6bdb277
parent17c7ac9144f0733ef91b64599481dfecb7d940fc
staging: comedi: adq12b: 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/adq12b.c