projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b116c59
)
Make CR_PACK less strict. Useful for comedilib.
author
David Schleef
<ds@schleef.org>
Fri, 17 May 2002 02:23:54 +0000
(
02:23
+0000)
committer
David Schleef
<ds@schleef.org>
Fri, 17 May 2002 02:23:54 +0000
(
02:23
+0000)
include/linux/comedi.h
patch
|
blob
|
history
diff --git
a/include/linux/comedi.h
b/include/linux/comedi.h
index 037ae5ccb221a0b6c28f134e1d29412436b38092..7841819b72c7420465f4110168e07d07150fd7fd 100644
(file)
--- a/
include/linux/comedi.h
+++ b/
include/linux/comedi.h
@@
-51,7
+51,7
@@
typedef unsigned short sampl_t;
/* packs and unpacks a channel/range number */
-#define CR_PACK(chan,rng,aref) ( (((aref)&0x3)<<24) | (((rng)&0xff)<<16) | (
(chan)&0xffff
) )
+#define CR_PACK(chan,rng,aref) ( (((aref)&0x3)<<24) | (((rng)&0xff)<<16) | (
chan
) )
#define CR_PACK_FLAGS(chan, range, aref, flags) (CR_PACK(chan, range, aref) | ((flags) & CR_FLAGS_MASK))
#define CR_CHAN(a) ((a)&0xffff)