Commit 77714d31 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: me4000: refactor 'ao_fifo' boardinfo

This member of the boardinfo is always '4' for the boards that have an
analog output FIFO. Covert it to a bit-field, 'has_ao_fifo', to save a
bit of space.
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 aed9b663
...@@ -188,12 +188,12 @@ enum me4000_boardid { ...@@ -188,12 +188,12 @@ enum me4000_boardid {
struct me4000_board { struct me4000_board {
const char *name; const char *name;
int ao_fifo;
int ai_nchan; int ai_nchan;
int ai_sh_nchan; int ai_sh_nchan;
unsigned int can_do_diff_ai:1; unsigned int can_do_diff_ai:1;
unsigned int ex_trig_analog:1; unsigned int ex_trig_analog:1;
unsigned int has_ao:1; unsigned int has_ao:1;
unsigned int has_ao_fifo:1;
unsigned int has_counter:1; unsigned int has_counter:1;
}; };
...@@ -264,40 +264,40 @@ static const struct me4000_board me4000_boards[] = { ...@@ -264,40 +264,40 @@ static const struct me4000_board me4000_boards[] = {
}, },
[BOARD_ME4680] = { [BOARD_ME4680] = {
.name = "ME-4680", .name = "ME-4680",
.ao_fifo = 4,
.ai_nchan = 32, .ai_nchan = 32,
.can_do_diff_ai = 1, .can_do_diff_ai = 1,
.ex_trig_analog = 1, .ex_trig_analog = 1,
.has_ao = 1, .has_ao = 1,
.has_ao_fifo = 1,
.has_counter = 1, .has_counter = 1,
}, },
[BOARD_ME4680I] = { [BOARD_ME4680I] = {
.name = "ME-4680i", .name = "ME-4680i",
.ao_fifo = 4,
.ai_nchan = 32, .ai_nchan = 32,
.can_do_diff_ai = 1, .can_do_diff_ai = 1,
.ex_trig_analog = 1, .ex_trig_analog = 1,
.has_ao = 1, .has_ao = 1,
.has_ao_fifo = 1,
.has_counter = 1, .has_counter = 1,
}, },
[BOARD_ME4680S] = { [BOARD_ME4680S] = {
.name = "ME-4680s", .name = "ME-4680s",
.ao_fifo = 4,
.ai_nchan = 32, .ai_nchan = 32,
.ai_sh_nchan = 8, .ai_sh_nchan = 8,
.can_do_diff_ai = 1, .can_do_diff_ai = 1,
.ex_trig_analog = 1, .ex_trig_analog = 1,
.has_ao = 1, .has_ao = 1,
.has_ao_fifo = 1,
.has_counter = 1, .has_counter = 1,
}, },
[BOARD_ME4680IS] = { [BOARD_ME4680IS] = {
.name = "ME-4680is", .name = "ME-4680is",
.ao_fifo = 4,
.ai_nchan = 32, .ai_nchan = 32,
.ai_sh_nchan = 8, .ai_sh_nchan = 8,
.can_do_diff_ai = 1, .can_do_diff_ai = 1,
.ex_trig_analog = 1, .ex_trig_analog = 1,
.has_ao = 1, .has_ao = 1,
.has_ao_fifo = 1,
.has_counter = 1, .has_counter = 1,
}, },
}; };
......
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