staging: comedi: ni_daq_dio24: remove subdevice pointer math
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:49:34 +0000 (18:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:06:29 +0000 (20:06 -0700)
commit06e915e2ac55afb4989da4fb212150aa67a369ca
tree4e09300c1501d92088ba2618d018056406142dbc
parentfe2e334a334d032b3c60c47a5a98429ee6d84a53
staging: comedi: ni_daq_dio24: 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_daq_dio24.c