staging: comedi: comedi_test: remove subdevice pointer math
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:34:16 +0000 (18:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:03:54 +0000 (20:03 -0700)
commit713e5c35e10215874ae60ef57912f21b31bc3ccc
treea0710232f6c20a6884ed87934de9136a22c44c4e
parent9da5ae29cd92beb8dda6da2ee149ebb593fba7ab
staging: comedi: comedi_test: 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/comedi_test.c