mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
staging: comedi: addi_apci_3120: remove 'ui_MinAcquisitiontimeNs'
Both boards supported by this driver have the same minimum acquisition time.. Remove the boardinfo for it and just open code the value in i_APCI3120_CommandTestAnalogInput(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1ba296b956
commit
97e998de5d
@ -787,20 +787,15 @@ static int i_APCI3120_CommandTestAnalogInput(struct comedi_device *dev,
|
||||
|
||||
if (cmd->convert_src == TRIG_TIMER) { /* Test Acquisition timing */
|
||||
if (cmd->scan_begin_src == TRIG_TIMER) {
|
||||
if ((cmd->convert_arg)
|
||||
&& (cmd->convert_arg <
|
||||
this_board->ui_MinAcquisitiontimeNs)) {
|
||||
cmd->convert_arg =
|
||||
this_board->ui_MinAcquisitiontimeNs;
|
||||
if (cmd->convert_arg &&
|
||||
(cmd->convert_arg < 10000)) {
|
||||
cmd->convert_arg = 10000;
|
||||
err++;
|
||||
}
|
||||
} else {
|
||||
if (cmd->convert_arg <
|
||||
this_board->ui_MinAcquisitiontimeNs) {
|
||||
cmd->convert_arg =
|
||||
this_board->ui_MinAcquisitiontimeNs;
|
||||
if (cmd->convert_arg < 10000) {
|
||||
cmd->convert_arg = 10000;
|
||||
err++;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ static const struct addi_board apci3120_boardtypes[] = {
|
||||
.i_NbrDoChannel = 4,
|
||||
.i_DoMaxdata = 0x0f,
|
||||
.b_AvailableConvertUnit = 1,
|
||||
.ui_MinAcquisitiontimeNs = 10000,
|
||||
.ui_MinDelaytimeNs = 100000,
|
||||
.interrupt = v_APCI3120_Interrupt,
|
||||
.ao_write = i_APCI3120_InsnWriteAnalogOutput,
|
||||
@ -42,7 +41,6 @@ static const struct addi_board apci3120_boardtypes[] = {
|
||||
.i_NbrDoChannel = 4,
|
||||
.i_DoMaxdata = 0x0f,
|
||||
.b_AvailableConvertUnit = 1,
|
||||
.ui_MinAcquisitiontimeNs = 10000,
|
||||
.ui_MinDelaytimeNs = 100000,
|
||||
.interrupt = v_APCI3120_Interrupt,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user