]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: usbduxsigma: generalize the usb_submit_urb functions
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 23 May 2013 19:46:40 +0000 (12:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2013 11:40:46 +0000 (20:40 +0900)
commit198d13dd7f4cf0e0be4ee842289f93182bf9bfbd
tree8723e69d1fdcf62a2b371e3a3b1f2a8ad4eb6672
parent161d5a25c3a94dc83f58c2cbe818d2660e2962d6
staging: comedi: usbduxsigma: generalize the usb_submit_urb functions

Generalize a helper function to replace usbduxsub_submit_{In,Out}URBs().

In the callers, set the 'a[io]_cmd_running' flag after the urbs have been
successfully submitted. This removes the need to clear the flag if the
submit fails.

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