staging: comedi: pcmad: remove subdevice pointer math
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:54:00 +0000 (18:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:06:30 +0000 (20:06 -0700)
commit86bb856a0264de6e1cab46539193444fe2ed2344
tree633f9f3d65febb4a5e289b922b326cd086215fd3
parentedb9dac794678286c171583aacc673cf60a9dbc0
staging: comedi: pcmad: 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/pcmad.c