staging: comedi: comedi_fops: remove subdevice pointer math
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 6 Sep 2012 01:20:58 +0000 (18:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 03:01:35 +0000 (20:01 -0700)
commitb077f2cd9b63798c676d62e03c85ace094e2d970
tree7936ffbb07665bdbf3a95cffb2fad88ac81a4455
parent14c9fda5c477305ccf0d82ccbdfd47f66a557d65
staging: comedi: comedi_fops: 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/comedi_fops.c