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

staging: comedi: adv_pci1710: rename pci171x_ai_*()

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 6f05ce9c
...@@ -177,7 +177,7 @@ struct pci1710_private { ...@@ -177,7 +177,7 @@ struct pci1710_private {
unsigned char unipolar_gain; /* adjust for unipolar gain codes */ unsigned char unipolar_gain; /* adjust for unipolar gain codes */
}; };
static int pci171x_ai_check_chanlist(struct comedi_device *dev, static int pci1710_ai_check_chanlist(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_cmd *cmd) struct comedi_cmd *cmd)
{ {
...@@ -243,7 +243,7 @@ static int pci171x_ai_check_chanlist(struct comedi_device *dev, ...@@ -243,7 +243,7 @@ static int pci171x_ai_check_chanlist(struct comedi_device *dev,
return 0; return 0;
} }
static void pci171x_ai_setup_chanlist(struct comedi_device *dev, static void pci1710_ai_setup_chanlist(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
unsigned int *chanlist, unsigned int *chanlist,
unsigned int n_chan, unsigned int n_chan,
...@@ -283,7 +283,7 @@ static void pci171x_ai_setup_chanlist(struct comedi_device *dev, ...@@ -283,7 +283,7 @@ static void pci171x_ai_setup_chanlist(struct comedi_device *dev,
outw(devpriv->mux_scan, dev->iobase + PCI171X_MUX_REG); outw(devpriv->mux_scan, dev->iobase + PCI171X_MUX_REG);
} }
static int pci171x_ai_eoc(struct comedi_device *dev, static int pci1710_ai_eoc(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, struct comedi_insn *insn,
unsigned long context) unsigned long context)
...@@ -296,7 +296,7 @@ static int pci171x_ai_eoc(struct comedi_device *dev, ...@@ -296,7 +296,7 @@ static int pci171x_ai_eoc(struct comedi_device *dev,
return -EBUSY; return -EBUSY;
} }
static int pci171x_ai_read_sample(struct comedi_device *dev, static int pci1710_ai_read_sample(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
unsigned int cur_chan, unsigned int cur_chan,
unsigned int *val) unsigned int *val)
...@@ -341,7 +341,7 @@ static int pci1710_ai_insn_read(struct comedi_device *dev, ...@@ -341,7 +341,7 @@ static int pci1710_ai_insn_read(struct comedi_device *dev,
outb(0, dev->iobase + PCI171X_CLRFIFO_REG); outb(0, dev->iobase + PCI171X_CLRFIFO_REG);
outb(0, dev->iobase + PCI171X_CLRINT_REG); outb(0, dev->iobase + PCI171X_CLRINT_REG);
pci171x_ai_setup_chanlist(dev, s, &insn->chanspec, 1, 1); pci1710_ai_setup_chanlist(dev, s, &insn->chanspec, 1, 1);
for (i = 0; i < insn->n; i++) { for (i = 0; i < insn->n; i++) {
unsigned int val; unsigned int val;
...@@ -349,11 +349,11 @@ static int pci1710_ai_insn_read(struct comedi_device *dev, ...@@ -349,11 +349,11 @@ static int pci1710_ai_insn_read(struct comedi_device *dev,
/* start conversion */ /* start conversion */
outw(0, dev->iobase + PCI171X_SOFTTRG_REG); outw(0, dev->iobase + PCI171X_SOFTTRG_REG);
ret = comedi_timeout(dev, s, insn, pci171x_ai_eoc, 0); ret = comedi_timeout(dev, s, insn, pci1710_ai_eoc, 0);
if (ret) if (ret)
break; break;
ret = pci171x_ai_read_sample(dev, s, 0, &val); ret = pci1710_ai_read_sample(dev, s, 0, &val);
if (ret) if (ret)
break; break;
...@@ -413,7 +413,7 @@ static void pci1710_handle_every_sample(struct comedi_device *dev, ...@@ -413,7 +413,7 @@ static void pci1710_handle_every_sample(struct comedi_device *dev,
outb(0, dev->iobase + PCI171X_CLRINT_REG); outb(0, dev->iobase + PCI171X_CLRINT_REG);
for (; !(inw(dev->iobase + PCI171X_STATUS_REG) & PCI171X_STATUS_FE);) { for (; !(inw(dev->iobase + PCI171X_STATUS_REG) & PCI171X_STATUS_FE);) {
ret = pci171x_ai_read_sample(dev, s, s->async->cur_chan, &val); ret = pci1710_ai_read_sample(dev, s, s->async->cur_chan, &val);
if (ret) { if (ret) {
s->async->events |= COMEDI_CB_ERROR; s->async->events |= COMEDI_CB_ERROR;
break; break;
...@@ -457,7 +457,7 @@ static void pci1710_handle_fifo(struct comedi_device *dev, ...@@ -457,7 +457,7 @@ static void pci1710_handle_fifo(struct comedi_device *dev,
unsigned int val; unsigned int val;
int ret; int ret;
ret = pci171x_ai_read_sample(dev, s, s->async->cur_chan, &val); ret = pci1710_ai_read_sample(dev, s, s->async->cur_chan, &val);
if (ret) { if (ret) {
s->async->events |= COMEDI_CB_ERROR; s->async->events |= COMEDI_CB_ERROR;
break; break;
...@@ -523,7 +523,7 @@ static int pci1710_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -523,7 +523,7 @@ 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;
pci171x_ai_setup_chanlist(dev, s, cmd->chanlist, cmd->chanlist_len, pci1710_ai_setup_chanlist(dev, s, cmd->chanlist, cmd->chanlist_len,
devpriv->saved_seglen); devpriv->saved_seglen);
outb(0, dev->iobase + PCI171X_CLRFIFO_REG); outb(0, dev->iobase + PCI171X_CLRFIFO_REG);
...@@ -623,7 +623,7 @@ static int pci1710_ai_cmdtest(struct comedi_device *dev, ...@@ -623,7 +623,7 @@ static int pci1710_ai_cmdtest(struct comedi_device *dev,
/* Step 5: check channel list */ /* Step 5: check channel list */
err |= pci171x_ai_check_chanlist(dev, s, cmd); err |= pci1710_ai_check_chanlist(dev, s, cmd);
if (err) if (err)
return 5; return 5;
......
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