staging: comedi: dt3000: remove dev_dbg() noise
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 26 Oct 2012 00:26:40 +0000 (17:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Oct 2012 16:18:18 +0000 (09:18 -0700)
Remove most of the dev_dbg() output from this driver. Most of it
is just noise.

For now I have left the dev_dbg() in the dt3k_send_cmd() function.
I still have not quite figured out how the low-level i/o works in
this driver...

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

index 347527f6759b157ccb154ea9c430685eb23c1d31..dba54844372c715a65048f432b3421001723d9c5 100644 (file)
@@ -348,8 +348,6 @@ static void dt3k_ai_empty_fifo(struct comedi_device *dev,
        if (count < 0)
                count += AI_FIFO_DEPTH;
 
-       dev_dbg(dev->class_dev, "reading %d samples\n", count);
-
        rear = devpriv->ai_rear;
 
        for (i = 0; i < count; i++) {
@@ -571,7 +569,6 @@ static int dt3k_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
        int ret;
        unsigned int mode;
 
-       dev_dbg(dev->class_dev, "dt3k_ai_cmd:\n");
        for (i = 0; i < cmd->chanlist_len; i++) {
                chan = CR_CHAN(cmd->chanlist[i]);
                range = CR_RANGE(cmd->chanlist[i]);
@@ -582,15 +579,12 @@ static int dt3k_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
        aref = CR_AREF(cmd->chanlist[0]);
 
        writew(cmd->scan_end_arg, devpriv->io_addr + DPR_Params(0));
-       dev_dbg(dev->class_dev, "param[0]=0x%04x\n", cmd->scan_end_arg);
 
        if (cmd->convert_src == TRIG_TIMER) {
                divider = dt3k_ns_to_timer(50, &cmd->convert_arg,
                                           cmd->flags & TRIG_ROUND_MASK);
                writew((divider >> 16), devpriv->io_addr + DPR_Params(1));
-               dev_dbg(dev->class_dev, "param[1]=0x%04x\n", divider >> 16);
                writew((divider & 0xffff), devpriv->io_addr + DPR_Params(2));
-               dev_dbg(dev->class_dev, "param[2]=0x%04x\n", divider & 0xffff);
        } else {
                /* not supported */
        }
@@ -599,21 +593,16 @@ static int dt3k_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
                tscandiv = dt3k_ns_to_timer(100, &cmd->scan_begin_arg,
                                            cmd->flags & TRIG_ROUND_MASK);
                writew((tscandiv >> 16), devpriv->io_addr + DPR_Params(3));
-               dev_dbg(dev->class_dev, "param[3]=0x%04x\n", tscandiv >> 16);
                writew((tscandiv & 0xffff), devpriv->io_addr + DPR_Params(4));
-               dev_dbg(dev->class_dev, "param[4]=0x%04x\n", tscandiv & 0xffff);
        } else {
                /* not supported */
        }
 
        mode = DT3000_AD_RETRIG_INTERNAL | 0 | 0;
        writew(mode, devpriv->io_addr + DPR_Params(5));
-       dev_dbg(dev->class_dev, "param[5]=0x%04x\n", mode);
        writew(aref == AREF_DIFF, devpriv->io_addr + DPR_Params(6));
-       dev_dbg(dev->class_dev, "param[6]=0x%04x\n", aref == AREF_DIFF);
 
        writew(AI_FIFO_DEPTH / 2, devpriv->io_addr + DPR_Params(7));
-       dev_dbg(dev->class_dev, "param[7]=0x%04x\n", AI_FIFO_DEPTH / 2);
 
        writew(SUBS_AI, devpriv->io_addr + DPR_SubSys);
        ret = dt3k_send_cmd(dev, CMD_CONFIG);