staging: comedi: ni_at_ao: remove subdevice pointer math
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:48:38 +0000 (18:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:06:29 +0000 (20:06 -0700)
commit66c5beee8f8de1a952192c8afe4d7708edbaa328
tree8ede16c862837bee8c08070ff2f7604ffe30dc2b
parentca3caabbb192fa8b1faef17830dff12cb1d0fb72
staging: comedi: ni_at_ao: 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_ao.c