From: David Schleef Date: Fri, 17 May 2002 02:23:54 +0000 (+0000) Subject: Make CR_PACK less strict. Useful for comedilib. X-Git-Tag: r0_7_65~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8f981418dcd9197e722c819f55dc4f17071cf3fd;p=comedi.git Make CR_PACK less strict. Useful for comedilib. --- diff --git a/include/linux/comedi.h b/include/linux/comedi.h index 037ae5cc..7841819b 100644 --- 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)