Tidy up the usb completion functions in the usbdux drivers by introducing
some helper functions to handle and resubmit the successful urbs. This allows
a common exit path to be used in the completion handler to stop the async
command, if necessary, and handle the events.

This series applies after:
  [PATCH 0/2] staging: comedi: tidy up the async event defines

H Hartley Sweeten (5):
  staging: comedi: usbdux: introduce usbduxsub_ao_handle_urb()
  staging: comedi: usbdux: introduce usbduxsub_ai_handle_urb()
  staging: comedi: usbduxfast: introduce usbduxfast_ai_handle_urb()
  staging: comedi: usbduxsigma: introduce usbduxsigma_ao_handle_urb()
  staging: comedi: usbduxsigma: introduce usbduxsigma_ai_handle_urb()

 drivers/staging/comedi/drivers/usbdux.c      | 304 +++++++++++++-------------
 drivers/staging/comedi/drivers/usbduxfast.c  | 131 +++++-------
 drivers/staging/comedi/drivers/usbduxsigma.c | 305 +++++++++++++--------------
 3 files changed, 345 insertions(+), 395 deletions(-)

-- 
2.0.3

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to