staging: comedi: ni_at_a2150: remove subdevice pointer math
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:48:20 +0000 (18:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:06:28 +0000 (20:06 -0700)
commitca3caabbb192fa8b1faef17830dff12cb1d0fb72
tree17759a3d220e6cc3c83c18a232c6cae2ecb2f6f4
parentfc041c20105ad3c4e58905e912eb191dfbc5664d
staging: comedi: ni_at_a2150: 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/ni_at_a2150.c