diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2014-09-15 13:45:59 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-19 15:55:31 -0700 |
commit | 2b4e1f632478f43bda1b38e04e0d740980fff1f3 (patch) | |
tree | e03f0642eab6f4bc49dfdcdd2cf44b5a6e249b99 /drivers/staging/comedi/comedidev.h | |
parent | staging: comedi: comedi_fc: use comedi_bytes_per_scan() (diff) | |
download | linux-2b4e1f632478f43bda1b38e04e0d740980fff1f3.tar.gz linux-2b4e1f632478f43bda1b38e04e0d740980fff1f3.tar.bz2 linux-2b4e1f632478f43bda1b38e04e0d740980fff1f3.zip |
staging: comedi: add comedi_inc_scan_progress()
The "comedi_fc" module contains a few functions useful to Comedi
drivers. Their functionality is being migrated to the core "comedi"
module and renamed to start with the prefix `comedi_`. As part of this
migration, move `cfc_inc_scan_progress()` into the core comedi module
and rename it to `comedi_inc_scan_progress()`. Change the external
declaration of `cfc_inc_scan_progress()` into an inline function that
calls `comedi_inc_scan_progress()`.
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>
Diffstat (limited to 'drivers/staging/comedi/comedidev.h')
-rw-r--r-- | drivers/staging/comedi/comedidev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h index cf732b4e938a..2b0af8483353 100644 --- a/drivers/staging/comedi/comedidev.h +++ b/drivers/staging/comedi/comedidev.h @@ -443,6 +443,8 @@ int comedi_dio_insn_config(struct comedi_device *, struct comedi_subdevice *, unsigned int comedi_dio_update_state(struct comedi_subdevice *, unsigned int *data); unsigned int comedi_bytes_per_scan(struct comedi_subdevice *s); +void comedi_inc_scan_progress(struct comedi_subdevice *s, + unsigned int num_bytes); void *comedi_alloc_devpriv(struct comedi_device *, size_t); int comedi_alloc_subdevices(struct comedi_device *, int); |