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

staging: comedi: adv_pci1710: rename pci171x_ai_{cmd,cmdtest}()

Rename these functions so they have namespace associated with the driver.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5ce43852
...@@ -518,7 +518,7 @@ static irqreturn_t pci1710_irq_handler(int irq, void *d) ...@@ -518,7 +518,7 @@ static irqreturn_t pci1710_irq_handler(int irq, void *d)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static int pci171x_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) static int pci1710_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
{ {
struct pci1710_private *devpriv = dev->private; struct pci1710_private *devpriv = dev->private;
struct comedi_cmd *cmd = &s->async->cmd; struct comedi_cmd *cmd = &s->async->cmd;
...@@ -559,7 +559,7 @@ static int pci171x_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -559,7 +559,7 @@ static int pci171x_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
return 0; return 0;
} }
static int pci171x_ai_cmdtest(struct comedi_device *dev, static int pci1710_ai_cmdtest(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_cmd *cmd) struct comedi_cmd *cmd)
{ {
...@@ -812,8 +812,8 @@ static int pci1710_auto_attach(struct comedi_device *dev, ...@@ -812,8 +812,8 @@ static int pci1710_auto_attach(struct comedi_device *dev,
dev->read_subdev = s; dev->read_subdev = s;
s->subdev_flags |= SDF_CMD_READ; s->subdev_flags |= SDF_CMD_READ;
s->len_chanlist = s->n_chan; s->len_chanlist = s->n_chan;
s->do_cmdtest = pci171x_ai_cmdtest; s->do_cmdtest = pci1710_ai_cmdtest;
s->do_cmd = pci171x_ai_cmd; s->do_cmd = pci1710_ai_cmd;
s->cancel = pci1710_ai_cancel; s->cancel = pci1710_ai_cancel;
} }
......
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