]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: ni_at_a2150: remove A2150_DEBUG
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 17:21:20 +0000 (10:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Nov 2013 17:55:15 +0000 (09:55 -0800)
The A2150_DEBUG define enables some development messages, specifically
the ni_dum_regs() function. These messages 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_at_a2150.c

index 63c847932eb88983fbe082c969cfb94787293e95..cc69ddef0a67c6415718c66999f49701fd7d0097 100644 (file)
@@ -74,9 +74,6 @@ TRIG_WAKE_EOS
 #define A2150_SIZE           28
 #define A2150_DMA_BUFFER_SIZE  0xff00  /*  size in bytes of dma buffer */
 
-/* #define A2150_DEBUG     enable debugging code */
-#undef A2150_DEBUG             /*  disable debugging code */
-
 /* Registers and bits */
 #define CONFIG_REG             0x0
 #define   CHANNEL_BITS(x)              ((x) & 0x7)
@@ -167,19 +164,6 @@ static int a2150_get_timing(struct comedi_device *dev, unsigned int *period,
 static int a2150_set_chanlist(struct comedi_device *dev,
                              unsigned int start_channel,
                              unsigned int num_channels);
-#ifdef A2150_DEBUG
-
-static void ni_dump_regs(struct comedi_device *dev)
-{
-       struct a2150_private *devpriv = dev->private;
-
-       printk("config bits 0x%x\n", devpriv->config_bits);
-       printk("irq dma bits 0x%x\n", devpriv->irq_dma_bits);
-       printk("status bits 0x%x\n", inw(dev->iobase + STATUS_REG));
-}
-
-#endif
-
 /* interrupt service routine */
 static irqreturn_t a2150_interrupt(int irq, void *d)
 {
@@ -506,9 +490,6 @@ static int a2150_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
        /*  start acquisition for soft trigger */
        if (cmd->start_src == TRIG_NOW)
                outw(0, dev->iobase + FIFO_START_REG);
-#ifdef A2150_DEBUG
-       ni_dump_regs(dev);
-#endif
 
        return 0;
 }
@@ -573,13 +554,7 @@ static int a2150_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s,
                        comedi_error(dev, "timeout");
                        return -ETIME;
                }
-#ifdef A2150_DEBUG
-               ni_dump_regs(dev);
-#endif
                data[n] = inw(dev->iobase + FIFO_DATA_REG);
-#ifdef A2150_DEBUG
-               printk(" data is %i\n", data[n]);
-#endif
                data[n] ^= 0x8000;
        }