Suppress some compiler warnings
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 28 Jan 2008 20:03:04 +0000 (20:03 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 28 Jan 2008 20:03:04 +0000 (20:03 +0000)
comedi/drivers/ni_mio_common.c

index c6d316aee6bd5a14c444a18bac998c703860c0d2..9229728fe9b1b260ed2532158962089fb709d1f1 100644 (file)
@@ -291,8 +291,10 @@ static int init_cs5529(comedi_device * dev);
 static int cs5529_do_conversion(comedi_device * dev, unsigned short *data);
 static int cs5529_ai_insn_read(comedi_device * dev, comedi_subdevice * s,
        comedi_insn * insn, lsampl_t * data);
+#ifdef NI_CS5529_DEBUG
 static unsigned int cs5529_config_read(comedi_device * dev,
        unsigned int reg_select_bits);
+#endif
 static void cs5529_config_write(comedi_device * dev, unsigned int value,
        unsigned int reg_select_bits);
 
@@ -5652,6 +5654,7 @@ static void cs5529_config_write(comedi_device * dev, unsigned int value,
                comedi_error(dev, "time or signal in cs5529_config_write()");
 }
 
+#ifdef NI_CS5529_DEBUG
 /* read from cs5529 register */
 static unsigned int cs5529_config_read(comedi_device * dev,
        unsigned int reg_select_bits)
@@ -5667,6 +5670,7 @@ static unsigned int cs5529_config_read(comedi_device * dev,
        value |= ni_ao_win_inw(dev, CAL_ADC_Config_Data_Low_Word_67xx) & 0xffff;
        return value;
 }
+#endif
 
 static int cs5529_do_conversion(comedi_device * dev, unsigned short *data)
 {
@@ -5743,7 +5747,7 @@ static int init_cs5529(comedi_device * dev)
        if (cs5529_wait_for_idle(dev))
                comedi_error(dev, "timeout or signal in init_cs5529()\n");
 #endif
-#if 0
+#ifdef NI_CS5529_DEBUG
        rt_printk("config: 0x%x\n", cs5529_config_read(dev,
                CSCMD_CONFIG_REGISTER));
        rt_printk("gain: 0x%x\n", cs5529_config_read(dev,