From 40313f2df35e122ff50f0531394a036f68a4730b Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 28 Jan 2008 20:03:04 +0000 Subject: [PATCH] Suppress some compiler warnings --- comedi/drivers/ni_mio_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/comedi/drivers/ni_mio_common.c b/comedi/drivers/ni_mio_common.c index c6d316ae..9229728f 100644 --- a/comedi/drivers/ni_mio_common.c +++ b/comedi/drivers/ni_mio_common.c @@ -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, -- 2.26.2