staging: comedi: dt282x: remove subdevice pointer math
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:41:08 +0000 (18:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:06:26 +0000 (20:06 -0700)
commite1d7cf9c9dd7e08390d836e9f9c8b4851c0b1df0
treefb5b759cf091a8dadfd17393d5321c863af7de07
parentd784e4c33f93ceacf609b796aa53e33fc17ce8fe
staging: comedi: dt282x: 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/dt282x.c