staging: comedi: comedi_fc: use comedi_bytes_per_scan()
authorIan Abbott <abbotti@mev.co.uk>
Mon, 15 Sep 2014 12:45:58 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 22:55:31 +0000 (15:55 -0700)
Since `cfc_bytes_per_scan()` is just an inline function that calls
`comedi_bytes_per_scan()`, replace calls to the former to the latter in
the "comedi_fc" module.  This is part of the migration of functionality
from the "comedi_fc" module to the core "comedi" module.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/comedi_fc.c

index 407ec70798ebe6c3e012c1cb56244429cc5df9cf..72fa71886f629e768330101c3b974db086e6e1b8 100644 (file)
@@ -25,7 +25,7 @@
 void cfc_inc_scan_progress(struct comedi_subdevice *s, unsigned int num_bytes)
 {
        struct comedi_async *async = s->async;
-       unsigned int scan_length = cfc_bytes_per_scan(s);
+       unsigned int scan_length = comedi_bytes_per_scan(s);
 
        async->scan_progress += num_bytes;
        if (async->scan_progress >= scan_length) {