summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-05-23 12:58:04 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-30 20:41:01 +0900
commit92f687ba5efdd1a15f23fb62da85663518e1afed (patch)
tree5a638f79893df6b6b1e0fd2725b5f2afd1ee8bcf /drivers/staging/comedi
parent8939787fe0e0c02b7331b2f67503f18435ebd208 (diff)
staging: comedi: usbduxsigma: remove usbdux_pwm_read()
The comment says its not needed, just remove 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>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r--drivers/staging/comedi/drivers/usbduxsigma.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/staging/comedi/drivers/usbduxsigma.c b/drivers/staging/comedi/drivers/usbduxsigma.c
index f96e0a77194b..83d7b61e1c90 100644
--- a/drivers/staging/comedi/drivers/usbduxsigma.c
+++ b/drivers/staging/comedi/drivers/usbduxsigma.c
@@ -1386,14 +1386,6 @@ static int usbdux_pwm_write(struct comedi_device *dev,
return usbdux_pwm_pattern(dev, s, CR_CHAN(insn->chanspec), data[0], 0);
}
-static int usbdux_pwm_read(struct comedi_device *x1,
- struct comedi_subdevice *x2, struct comedi_insn *x3,
- unsigned int *x4)
-{
- /* not needed */
- return -EINVAL;
-};
-
static int usbduxsigma_pwm_config(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn,
@@ -1552,7 +1544,6 @@ static int usbduxsigma_attach_common(struct comedi_device *dev)
s->n_chan = 8;
s->maxdata = devpriv->sizePwmBuf;
s->insn_write = usbdux_pwm_write;
- s->insn_read = usbdux_pwm_read;
s->insn_config = usbduxsigma_pwm_config;
usbdux_pwm_period(dev, s, PWM_DEFAULT_PERIOD);