staging: comedi: ni_mio_common: remove DEBUG_DIO messages
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 17:21:32 +0000 (10:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Nov 2013 17:55:18 +0000 (09:55 -0800)
Defining DEBUG_DIO simply enables some function trace messages. These are
just added noise. Remove them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_mio_common.c

index f44013c8097b30db4bb74f993681cc72e1c98208..4bf0ef2b93d79b2ed0f3ed871ba73dfa9618bb8c 100644 (file)
@@ -3798,10 +3798,6 @@ static int ni_serial_insn_config(struct comedi_device *dev,
 
        switch (data[0]) {
        case INSN_CONFIG_SERIAL_CLOCK:
-
-#ifdef DEBUG_DIO
-               printk("SPI serial clock Config cd\n", data[1]);
-#endif
                devpriv->serial_hw_mode = 1;
                devpriv->dio_control |= DIO_HW_Serial_Enable;
 
@@ -3890,10 +3886,6 @@ static int ni_serial_hw_readwrite8(struct comedi_device *dev,
        unsigned int status1;
        int err = 0, count = 20;
 
-#ifdef DEBUG_DIO
-       printk("ni_serial_hw_readwrite8: outputting 0x%x\n", data_out);
-#endif
-
        devpriv->dio_output &= ~DIO_Serial_Data_Mask;
        devpriv->dio_output |= DIO_Serial_Data_Out(data_out);
        devpriv->stc_writew(dev, devpriv->dio_output, DIO_Output_Register);
@@ -3927,12 +3919,8 @@ static int ni_serial_hw_readwrite8(struct comedi_device *dev,
           DIO_Serial_IO_In_Progress_St goes high one bit too early. */
        udelay((devpriv->serial_interval_ns + 999) / 1000);
 
-       if (data_in != NULL) {
+       if (data_in != NULL)
                *data_in = devpriv->stc_readw(dev, DIO_Serial_Input_Register);
-#ifdef DEBUG_DIO
-               printk("ni_serial_hw_readwrite8: inputted 0x%x\n", *data_in);
-#endif
-       }
 
 Error:
        devpriv->stc_writew(dev, devpriv->dio_control, DIO_Control_Register);
@@ -3948,10 +3936,6 @@ static int ni_serial_sw_readwrite8(struct comedi_device *dev,
        struct ni_private *devpriv = dev->private;
        unsigned char mask, input = 0;
 
-#ifdef DEBUG_DIO
-       printk("ni_serial_sw_readwrite8: outputting 0x%x\n", data_out);
-#endif
-
        /* Wait for one bit before transfer */
        udelay((devpriv->serial_interval_ns + 999) / 1000);
 
@@ -3988,9 +3972,7 @@ static int ni_serial_sw_readwrite8(struct comedi_device *dev,
                        input |= mask;
                }
        }
-#ifdef DEBUG_DIO
-       printk("ni_serial_sw_readwrite8: inputted 0x%x\n", input);
-#endif
+
        if (data_in)
                *data_in = input;