staging: comedi: dt2811: remove subdevice pointer math
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:39:51 +0000 (18:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:03:55 +0000 (20:03 -0700)
commit4ea498964a9168a17bc61183c400308f11eaee8a
treec9cefc91c62dbf2fc1a99b181b0bd305ce0c8e74
parent4b812ac50811e8afbe2d0fd0404de02f5a2532ad
staging: comedi: dt2811: 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/dt2811.c