Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9459ff2b authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: adl_pci9118: rename valid_samples_in_act_dma_buf()



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 ad1a9646
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -401,7 +401,7 @@ static void pci9118_ai_mode4_switch(struct comedi_device *dev,
	outl(devpriv->ai_cfg, dev->iobase + PCI9118_AI_CFG_REG);
}

static unsigned int valid_samples_in_act_dma_buf(struct comedi_device *dev,
static unsigned int pci9118_ai_samples_ready(struct comedi_device *dev,
					     struct comedi_subdevice *s,
					     unsigned int n_raw_samples)
{
@@ -642,7 +642,7 @@ static void interrupt_pci9118_ai_dma(struct comedi_device *dev,
	bool more_dma;

	/* determine whether more DMA buffers to do after this one */
	n_valid = valid_samples_in_act_dma_buf(dev, s, n_all);
	n_valid = pci9118_ai_samples_ready(dev, s, n_all);
	more_dma = n_valid < comedi_nsamples_left(s, n_valid + 1);

	/* switch DMA buffers and restart DMA if double buffering */