staging: comedi: das16: use comedi_bytes_per_scan()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 18 Sep 2014 18:41:15 +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/das16.c

index 222a32ff0d32af67a9307840681749c94943ceae..5d47d0a1d45f10dff9226826b99cd52054927b80 100644 (file)
@@ -764,7 +764,7 @@ static int das16_cmd_exec(struct comedi_device *dev, struct comedi_subdevice *s)
                return -1;
        }
 
-       devpriv->adc_byte_count = cmd->stop_arg * cfc_bytes_per_scan(s);
+       devpriv->adc_byte_count = cmd->stop_arg * comedi_bytes_per_scan(s);
 
        if (devpriv->can_burst)
                outb(DAS1600_CONV_DISABLE, dev->iobase + DAS1600_CONV_REG);