staging: comedi: pcl812: remove unneeded tests in pcl812_ai_cmdtest
The step 2 tests to make sure that the triggers are unique is not needed for single source triggers. These were already trivially validated in step 1. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f7f111c214
commit
31a4590ee3
1 changed files with 0 additions and 27 deletions
|
@ -612,33 +612,6 @@ static int pcl812_ai_cmdtest(struct comedi_device *dev,
|
||||||
* unique and mutually compatible
|
* unique and mutually compatible
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (cmd->start_src != TRIG_NOW) {
|
|
||||||
cmd->start_src = TRIG_NOW;
|
|
||||||
err++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cmd->scan_begin_src != TRIG_FOLLOW) {
|
|
||||||
cmd->scan_begin_src = TRIG_FOLLOW;
|
|
||||||
err++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (devpriv->use_ext_trg) {
|
|
||||||
if (cmd->convert_src != TRIG_EXT) {
|
|
||||||
cmd->convert_src = TRIG_EXT;
|
|
||||||
err++;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (cmd->convert_src != TRIG_TIMER) {
|
|
||||||
cmd->convert_src = TRIG_TIMER;
|
|
||||||
err++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cmd->scan_end_src != TRIG_COUNT) {
|
|
||||||
cmd->scan_end_src = TRIG_COUNT;
|
|
||||||
err++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cmd->stop_src != TRIG_NONE && cmd->stop_src != TRIG_COUNT)
|
if (cmd->stop_src != TRIG_NONE && cmd->stop_src != TRIG_COUNT)
|
||||||
err++;
|
err++;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue