mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-15 17:14:00 +08:00
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: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
aed9b66316
commit
77714d31f6
@ -188,12 +188,12 @@ enum me4000_boardid {
|
||||
|
||||
struct me4000_board {
|
||||
const char *name;
|
||||
int ao_fifo;
|
||||
int ai_nchan;
|
||||
int ai_sh_nchan;
|
||||
unsigned int can_do_diff_ai:1;
|
||||
unsigned int ex_trig_analog:1;
|
||||
unsigned int has_ao:1;
|
||||
unsigned int has_ao_fifo:1;
|
||||
unsigned int has_counter:1;
|
||||
};
|
||||
|
||||
@ -264,40 +264,40 @@ static const struct me4000_board me4000_boards[] = {
|
||||
},
|
||||
[BOARD_ME4680] = {
|
||||
.name = "ME-4680",
|
||||
.ao_fifo = 4,
|
||||
.ai_nchan = 32,
|
||||
.can_do_diff_ai = 1,
|
||||
.ex_trig_analog = 1,
|
||||
.has_ao = 1,
|
||||
.has_ao_fifo = 1,
|
||||
.has_counter = 1,
|
||||
},
|
||||
[BOARD_ME4680I] = {
|
||||
.name = "ME-4680i",
|
||||
.ao_fifo = 4,
|
||||
.ai_nchan = 32,
|
||||
.can_do_diff_ai = 1,
|
||||
.ex_trig_analog = 1,
|
||||
.has_ao = 1,
|
||||
.has_ao_fifo = 1,
|
||||
.has_counter = 1,
|
||||
},
|
||||
[BOARD_ME4680S] = {
|
||||
.name = "ME-4680s",
|
||||
.ao_fifo = 4,
|
||||
.ai_nchan = 32,
|
||||
.ai_sh_nchan = 8,
|
||||
.can_do_diff_ai = 1,
|
||||
.ex_trig_analog = 1,
|
||||
.has_ao = 1,
|
||||
.has_ao_fifo = 1,
|
||||
.has_counter = 1,
|
||||
},
|
||||
[BOARD_ME4680IS] = {
|
||||
.name = "ME-4680is",
|
||||
.ao_fifo = 4,
|
||||
.ai_nchan = 32,
|
||||
.ai_sh_nchan = 8,
|
||||
.can_do_diff_ai = 1,
|
||||
.ex_trig_analog = 1,
|
||||
.has_ao = 1,
|
||||
.has_ao_fifo = 1,
|
||||
.has_counter = 1,
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user