Index: comedi/drivers/cb_pcimdda.c
===================================================================
RCS file: /var/cvs/comedi/comedi/drivers/cb_pcimdda.c,v
retrieving revision 1.8
diff -u -r1.8 cb_pcimdda.c
--- comedi/drivers/cb_pcimdda.c	15 Feb 2003 18:35:46 -0000	1.8
+++ comedi/drivers/cb_pcimdda.c	12 Jan 2005 17:24:46 -0000
@@ -209,7 +209,10 @@
 -----------------------------------------------------------------------------*/
 
 /* returns a maxdata value for a given n_bits */
-static inline lsampl_t figure_out_maxdata(int bits);
+static inline lsampl_t figure_out_maxdata(int bits)
+{
+	return (((lsampl_t)1 << bits) - 1);
+}
 
 /* 
  *  Probes for a supported device.
@@ -485,19 +488,6 @@
 	return -ENODEV;
 }
 
-
-/* returns a maxdata value for a given n_bits */
-static inline lsampl_t figure_out_maxdata(int bits)
-{
-    lsampl_t max = 0;
-    int i;
-
-    for (i = 0; i < bits; i++) {
-      max <<= 1;
-      max |=  1U;
-    }
-    return max;
-}
 
 
 

