staging: comedi: usbdux: introduce usbduxsub_ao_handle_urb()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 Oct 2014 19:14:37 +0000 (12:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 07:52:14 +0000 (15:52 +0800)
commit67f61f7ae9dd3e1b0ac9c2136aba2fca6740d8bf
tree2c51e589d1485ae265f1dd72ae6905b3546b0cef
parenta0a7ae158a18a62b0661b3ef23ec1cbfec09ace0
staging: comedi: usbdux: introduce usbduxsub_ao_handle_urb()

Factor the urb handling and resubmit out of the analog output urb
completion handler and tidy it up. This allows a common exit path
to be used in the completion handler to stop the async command and
handle the events.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: Bernd Porr <mail@berndporr.me.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbdux.c