staging: comedi: pcl818: use comedi_bytes_per_scan()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 18 Sep 2014 18:41:19 +0000 (11:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:25 +0000 (10:29 +0800)
This inline function is just a wrapper around comedi_bytes_per_scan().

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>
drivers/staging/comedi/drivers/pcl818.c

index 618591d3b3b3fdfbcf4ff2e858478737a63b4930..9921e1fa7515f444257a50f7a97fd4949e62a375 100644 (file)
@@ -352,7 +352,7 @@ static void pcl818_ai_setup_dma(struct comedi_device *dev,
        disable_dma(devpriv->dma);      /*  disable dma */
        bytes = devpriv->hwdmasize;
        if (cmd->stop_src == TRIG_COUNT) {
-               bytes = cmd->stop_arg * cfc_bytes_per_scan(s);
+               bytes = cmd->stop_arg * comedi_bytes_per_scan(s);
                devpriv->dma_runs_to_end = bytes / devpriv->hwdmasize;
                devpriv->last_dma_run = bytes % devpriv->hwdmasize;
                devpriv->dma_runs_to_end--;