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

staging: comedi: gsc_hpdi: rename drain_dma_buffers()

For aesthetics, rename this function so it has 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 3521d454
...@@ -225,7 +225,7 @@ static inline void hpdi_writel(struct comedi_device *dev, uint32_t bits, ...@@ -225,7 +225,7 @@ static inline void hpdi_writel(struct comedi_device *dev, uint32_t bits,
devpriv->hpdi_iobase + offset); 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 hpdi_private *devpriv = dev->private;
struct comedi_async *async = dev->read_subdev->async; struct comedi_async *async = dev->read_subdev->async;
...@@ -302,7 +302,7 @@ static irqreturn_t gsc_hpdi_interrupt(int irq, void *d) ...@@ -302,7 +302,7 @@ static irqreturn_t gsc_hpdi_interrupt(int irq, void *d)
devpriv->plx9080_iobase + PLX_DMA0_CS_REG); devpriv->plx9080_iobase + PLX_DMA0_CS_REG);
if (dma0_status & PLX_DMA_EN_BIT) if (dma0_status & PLX_DMA_EN_BIT)
drain_dma_buffers(dev, 0); gsc_hpdi_drain_dma(dev, 0);
} }
spin_unlock_irqrestore(&dev->spinlock, flags); spin_unlock_irqrestore(&dev->spinlock, flags);
......
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