Commit 5a213fa6 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: amplc_dio200_common: convert driver to use the comedi_8254 module

Convert this driver to use the comedi_8254 module to provide the 8254 timer support.

Add 'clock_src' and 'gate_src' members to the comedi_8254 data for convienence.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 99ca4e46
...@@ -1275,6 +1275,7 @@ config COMEDI_KCOMEDILIB ...@@ -1275,6 +1275,7 @@ config COMEDI_KCOMEDILIB
called kcomedilib. called kcomedilib.
config COMEDI_AMPLC_DIO200 config COMEDI_AMPLC_DIO200
select COMEDI_8254
tristate tristate
config COMEDI_AMPLC_PC236 config COMEDI_AMPLC_PC236
......
...@@ -71,6 +71,8 @@ ...@@ -71,6 +71,8 @@
* #next_div: next divisor for single counter * #next_div: next divisor for single counter
* @next_div1: next divisor to use for first cascaded counter * @next_div1: next divisor to use for first cascaded counter
* @next_div2: next divisor to use for second cascaded counter * @next_div2: next divisor to use for second cascaded counter
* @clock_src; current clock source for each counter (driver specific)
* @gate_src; current gate source for each counter (driver specific)
* @busy: flags used to indicate that a counter is "busy" * @busy: flags used to indicate that a counter is "busy"
* @insn_config: driver specific (*insn_config) callback * @insn_config: driver specific (*insn_config) callback
*/ */
...@@ -86,6 +88,8 @@ struct comedi_8254 { ...@@ -86,6 +88,8 @@ struct comedi_8254 {
unsigned int next_div; unsigned int next_div;
unsigned int next_div1; unsigned int next_div1;
unsigned int next_div2; unsigned int next_div2;
unsigned int clock_src[3];
unsigned int gate_src[3];
bool busy[3]; bool busy[3];
int (*insn_config)(struct comedi_device *, struct comedi_subdevice *s, int (*insn_config)(struct comedi_device *, struct comedi_subdevice *s,
......
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