Commit 55deb39b authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: comedi_fc: use comedi_bytes_per_scan()

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: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f146fe63
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
void cfc_inc_scan_progress(struct comedi_subdevice *s, unsigned int num_bytes) void cfc_inc_scan_progress(struct comedi_subdevice *s, unsigned int num_bytes)
{ {
struct comedi_async *async = s->async; 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; async->scan_progress += num_bytes;
if (async->scan_progress >= scan_length) { if (async->scan_progress >= scan_length) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment