staging: comedi: usbduxfast: tidy up usbduxfastsub_ai_Irq()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 May 2013 20:29:09 +0000 (13:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:24:19 +0000 (16:24 -0700)
commitf8eb27e07642545e6ed0f47054c0c041fdf91609
tree674efec1f782068e5a9d33ab3508d72c86ed70b1
parentba6205d6f9e63720529cd5c3cde4a0946b017c46
staging: comedi: usbduxfast: tidy up usbduxfastsub_ai_Irq()

Rename the CamelCase function,

Rename some of the local variables to the normal names used in
comedi drivers. Add a local variable for the comedi_async *.

Remove the sanity checking. The urb that causes this function to
be called can only be submitted if the sanity checks already
passed.

Change the way the comedi_subdevice is fetched. The attach function
sets the dev->read_subev pointer to the correct subdevice. Use that
instead of accessing the dev->subdevices array directly.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbduxfast.c