staging: comedi: adl_pci9118: remove unused parameters from setup_channel_list()
The 'rot' and 'usedma' parameters are not used in this function. Remove them. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
11822f0218
commit
acdc21c203
|
@ -387,18 +387,13 @@ static int check_channel_list(struct comedi_device *dev,
|
||||||
|
|
||||||
static int setup_channel_list(struct comedi_device *dev,
|
static int setup_channel_list(struct comedi_device *dev,
|
||||||
struct comedi_subdevice *s, int n_chan,
|
struct comedi_subdevice *s, int n_chan,
|
||||||
unsigned int *chanlist, int rot, int frontadd,
|
unsigned int *chanlist, int frontadd,
|
||||||
int backadd, int usedma)
|
int backadd)
|
||||||
{
|
{
|
||||||
struct pci9118_private *devpriv = dev->private;
|
struct pci9118_private *devpriv = dev->private;
|
||||||
unsigned int scanquad, gain, ssh = 0x00;
|
unsigned int scanquad, gain, ssh = 0x00;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (usedma == 1) {
|
|
||||||
rot = 8;
|
|
||||||
usedma = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* gods know why this sequence! */
|
/* gods know why this sequence! */
|
||||||
outl(2, dev->iobase + PCI9118_AI_AUTOSCAN_MODE_REG);
|
outl(2, dev->iobase + PCI9118_AI_AUTOSCAN_MODE_REG);
|
||||||
outl(0, dev->iobase + PCI9118_AI_AUTOSCAN_MODE_REG);
|
outl(0, dev->iobase + PCI9118_AI_AUTOSCAN_MODE_REG);
|
||||||
|
@ -1343,8 +1338,8 @@ static int pci9118_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
|
||||||
pci9118_ai_set_range_aref(dev, s, cmd->chanlist[0]);
|
pci9118_ai_set_range_aref(dev, s, cmd->chanlist[0]);
|
||||||
|
|
||||||
if (!setup_channel_list(dev, s, cmd->chanlist_len,
|
if (!setup_channel_list(dev, s, cmd->chanlist_len,
|
||||||
cmd->chanlist, 0, devpriv->ai_add_front,
|
cmd->chanlist, devpriv->ai_add_front,
|
||||||
devpriv->ai_add_back, devpriv->usedma))
|
devpriv->ai_add_back))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/* compute timers settings */
|
/* compute timers settings */
|
||||||
|
@ -1458,7 +1453,7 @@ static int pci9118_ai_insn_read(struct comedi_device *dev,
|
||||||
devpriv->ai_cfg = PCI9118_AI_CFG_PDTRG | PCI9118_AI_CFG_PETRG;
|
devpriv->ai_cfg = PCI9118_AI_CFG_PDTRG | PCI9118_AI_CFG_PETRG;
|
||||||
outl(devpriv->ai_cfg, dev->iobase + PCI9118_AI_CFG_REG);
|
outl(devpriv->ai_cfg, dev->iobase + PCI9118_AI_CFG_REG);
|
||||||
|
|
||||||
if (!setup_channel_list(dev, s, 1, &insn->chanspec, 0, 0, 0, 0))
|
if (!setup_channel_list(dev, s, 1, &insn->chanspec, 0, 0))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
pci9118_ai_reset_fifo(dev);
|
pci9118_ai_reset_fifo(dev);
|
||||||
|
|
Loading…
Reference in New Issue