staging: comedi: pcmuio: tidy up pcmuio_handle_asic_interrupt()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 6 Dec 2013 16:43:02 +0000 (09:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Dec 2013 21:10:02 +0000 (13:10 -0800)
commit741ba8cdf0e938d131b49fda37f80057286e459b
tree1d9f185306cf558949a4978feede58d999760a63
parent099ec87df0ff7c2c66173876a9b8910aafb7ca39
staging: comedi: pcmuio: tidy up pcmuio_handle_asic_interrupt()

Unfortunatly, since there could be two asics, we can't use dev->read_subdev
to get the subdevice. But, the comedi_subdevice associated with the 'asic'
can easily be calculated. This allows removing the for () loop that searched
for the correct subdevice.

Tidy up the function.

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/pcmuio.c