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

index 7ca6a6179cf26524864296ea282633cffb0a2c7e..9fcf6f77c96ed152778e51cee5b7b58983e7e7cf 100644 (file)
@@ -514,7 +514,7 @@ static void pci224_ao_handle_fifo(struct comedi_device *dev,
 {
        struct pci224_private *devpriv = dev->private;
        struct comedi_cmd *cmd = &s->async->cmd;
-       unsigned int bytes_per_scan = cfc_bytes_per_scan(s);
+       unsigned int bytes_per_scan = comedi_bytes_per_scan(s);
        unsigned int num_scans;
        unsigned int room;
        unsigned short dacstat;