Commit fd245192 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: usbduxsigma: rename usbdux_pwm_cancel()

Rename the function so it has namespace associated with the driver.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aff4dd06
...@@ -1157,7 +1157,7 @@ static void usbdux_pwm_stop(struct usbduxsigma_private *devpriv, int do_unlink) ...@@ -1157,7 +1157,7 @@ static void usbdux_pwm_stop(struct usbduxsigma_private *devpriv, int do_unlink)
devpriv->pwm_cmd_running = 0; devpriv->pwm_cmd_running = 0;
} }
static int usbdux_pwm_cancel(struct comedi_device *dev, static int usbduxsigma_pwm_cancel(struct comedi_device *dev,
struct comedi_subdevice *s) struct comedi_subdevice *s)
{ {
struct usbduxsigma_private *devpriv = dev->private; struct usbduxsigma_private *devpriv = dev->private;
...@@ -1340,7 +1340,7 @@ static int usbduxsigma_pwm_config(struct comedi_device *dev, ...@@ -1340,7 +1340,7 @@ static int usbduxsigma_pwm_config(struct comedi_device *dev,
return -EINVAL; return -EINVAL;
return usbduxsigma_pwm_start(dev, s); return usbduxsigma_pwm_start(dev, s);
case INSN_CONFIG_DISARM: case INSN_CONFIG_DISARM:
return usbdux_pwm_cancel(dev, s); return usbduxsigma_pwm_cancel(dev, s);
case INSN_CONFIG_GET_PWM_STATUS: case INSN_CONFIG_GET_PWM_STATUS:
data[1] = devpriv->pwm_cmd_running; data[1] = devpriv->pwm_cmd_running;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment