mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
staging: comedi: usbduxsigma: absorb usbduxsub_unlink_PwmURBs() into caller
This function is only called by usbdux_pwm_stop(). Absorb it. 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>
This commit is contained in:
parent
7bcc313186
commit
f31260f9c8
1 changed files with 4 additions and 8 deletions
|
|
@ -1590,16 +1590,12 @@ static int usbdux_dio_insn_bits(struct comedi_device *dev,
|
|||
return insn->n;
|
||||
}
|
||||
|
||||
static void usbduxsub_unlink_PwmURBs(struct usbduxsub *devpriv)
|
||||
{
|
||||
if (devpriv->urbPwm)
|
||||
usb_kill_urb(devpriv->urbPwm);
|
||||
}
|
||||
|
||||
static void usbdux_pwm_stop(struct usbduxsub *devpriv, int do_unlink)
|
||||
{
|
||||
if (do_unlink)
|
||||
usbduxsub_unlink_PwmURBs(devpriv);
|
||||
if (do_unlink) {
|
||||
if (devpriv->urbPwm)
|
||||
usb_kill_urb(devpriv->urbPwm);
|
||||
}
|
||||
|
||||
devpriv->pwm_cmd_running = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue