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

staging: comedi: adl_pci9118: rename interrupt_pci9118_ai_mode4_switch()

For aesthetics, remove "interrupt_" from this functions name to shorten
it a bit.
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 dd2907c3
...@@ -386,8 +386,8 @@ static void pci9118_set_chanlist(struct comedi_device *dev, ...@@ -386,8 +386,8 @@ static void pci9118_set_chanlist(struct comedi_device *dev,
/* udelay(100); important delay, or first sample will be crippled */ /* udelay(100); important delay, or first sample will be crippled */
} }
static void interrupt_pci9118_ai_mode4_switch(struct comedi_device *dev, static void pci9118_ai_mode4_switch(struct comedi_device *dev,
unsigned int next_buf) unsigned int next_buf)
{ {
struct pci9118_private *devpriv = dev->private; struct pci9118_private *devpriv = dev->private;
struct pci9118_dmabuf *dmabuf = &devpriv->dmabuf[next_buf]; struct pci9118_dmabuf *dmabuf = &devpriv->dmabuf[next_buf];
...@@ -649,10 +649,8 @@ static void interrupt_pci9118_ai_dma(struct comedi_device *dev, ...@@ -649,10 +649,8 @@ static void interrupt_pci9118_ai_dma(struct comedi_device *dev,
if (more_dma && devpriv->dma_doublebuf) { if (more_dma && devpriv->dma_doublebuf) {
devpriv->dma_actbuf = 1 - devpriv->dma_actbuf; devpriv->dma_actbuf = 1 - devpriv->dma_actbuf;
pci9118_amcc_setup_dma(dev, devpriv->dma_actbuf); pci9118_amcc_setup_dma(dev, devpriv->dma_actbuf);
if (devpriv->ai_do == 4) { if (devpriv->ai_do == 4)
interrupt_pci9118_ai_mode4_switch(dev, pci9118_ai_mode4_switch(dev, devpriv->dma_actbuf);
devpriv->dma_actbuf);
}
} }
if (n_all) if (n_all)
...@@ -670,7 +668,7 @@ static void interrupt_pci9118_ai_dma(struct comedi_device *dev, ...@@ -670,7 +668,7 @@ static void interrupt_pci9118_ai_dma(struct comedi_device *dev,
if (more_dma && !devpriv->dma_doublebuf) { if (more_dma && !devpriv->dma_doublebuf) {
pci9118_amcc_setup_dma(dev, 0); pci9118_amcc_setup_dma(dev, 0);
if (devpriv->ai_do == 4) if (devpriv->ai_do == 4)
interrupt_pci9118_ai_mode4_switch(dev, 0); pci9118_ai_mode4_switch(dev, 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