For aesthetics, rename this function so it has namespace associated
with the driver.
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>
devpriv->hpdi_iobase + offset);
}
-static void drain_dma_buffers(struct comedi_device *dev, unsigned int channel)
+static void gsc_hpdi_drain_dma(struct comedi_device *dev, unsigned int channel)
{
struct hpdi_private *devpriv = dev->private;
struct comedi_async *async = dev->read_subdev->async;
devpriv->plx9080_iobase + PLX_DMA0_CS_REG);
if (dma0_status & PLX_DMA_EN_BIT)
- drain_dma_buffers(dev, 0);
+ gsc_hpdi_drain_dma(dev, 0);
}
spin_unlock_irqrestore(&dev->spinlock, flags);