Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325153
b: refs/heads/master
c: 6c39eed
h: refs/heads/master
i:
  325151: ee40a1f
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent 2437009 commit e8bc123
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6be4173b02f85fa3d2f8610b79ea276eea86c3ac
refs/heads/master: 6c39eed00cb28d4997ddf3a7aa96a1aff48c8828
12 changes: 12 additions & 0 deletions trunk/drivers/staging/comedi/drivers/comedi_fc.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,16 @@ static inline int cfc_check_trigger_src(unsigned int *src, unsigned int flags)
return 0;
}

/**
* cfc_check_trigger_is_unique() - make sure a trigger source is unique
* @src: the trigger source to check
*/
static inline int cfc_check_trigger_is_unique(unsigned int src)
{
/* this test is true if more than one _src bit is set */
if ((src & (src - 1)) != 0)
return -EINVAL;
return 0;
}

#endif /* _COMEDI_FC_H */

0 comments on commit e8bc123

Please sign in to comment.