Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325213
b: refs/heads/master
c: b7f16de
h: refs/heads/master
i:
  325211: bc152a7
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 12, 2012
1 parent 51be8f5 commit cee0aa5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 85f3088b848900a1c904dde2ae6505ecad399910
refs/heads/master: b7f16de6a4fc15b07d0ec86fdc78b1093dd07f52
15 changes: 5 additions & 10 deletions trunk/drivers/staging/comedi/drivers/adv_pci1710.c
Original file line number Diff line number Diff line change
Expand Up @@ -1057,18 +1057,13 @@ static int pci171x_ai_cmdtest(struct comedi_device *dev,
if (err)
return 1;

/* step2: make sure trigger srcs are unique and mutually compatible */
/* step 2a: make sure trigger sources are unique */

if (cmd->start_src != TRIG_NOW && cmd->start_src != TRIG_EXT) {
cmd->start_src = TRIG_NOW;
err++;
}
err |= cfc_check_trigger_is_unique(cmd->start_src);
err |= cfc_check_trigger_is_unique(cmd->convert_src);
err |= cfc_check_trigger_is_unique(cmd->stop_src);

if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT)
err++;

if (cmd->stop_src != TRIG_NONE && cmd->stop_src != TRIG_COUNT)
err++;
/* step 2b: and mutually compatible */

if (err)
return 2;
Expand Down

0 comments on commit cee0aa5

Please sign in to comment.