aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-11-26 18:41:57 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-03 12:20:21 -0500
commit38fa4c4cfda77e58801a000112856ecdefe4335d (patch)
tree263214c1e09370b0bbe2c8c9dfbb39cdb7f2e56f
parentc5a9595b2368eee2a4a92ffe30a57f3a45e478bf (diff)
staging: comedi: dt2815: convert printk's in dt2815_ao_insn()
Convert the printk(KERN_WARNING messages in this function to dev_dbg(). 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>
-rw-r--r--drivers/staging/comedi/drivers/dt2815.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/dt2815.c b/drivers/staging/comedi/drivers/dt2815.c
index 34040f0175e8..1a4caada5620 100644
--- a/drivers/staging/comedi/drivers/dt2815.c
+++ b/drivers/staging/comedi/drivers/dt2815.c
@@ -107,8 +107,9 @@ static int dt2815_ao_insn(struct comedi_device *dev, struct comedi_subdevice *s,
107 107
108 status = dt2815_wait_for_status(dev, 0x00); 108 status = dt2815_wait_for_status(dev, 0x00);
109 if (status != 0) { 109 if (status != 0) {
110 printk(KERN_WARNING "dt2815: failed to write low byte " 110 dev_dbg(dev->class_dev,
111 "on %d reason %x\n", chan, status); 111 "failed to write low byte on %d reason %x\n",
112 chan, status);
112 return -EBUSY; 113 return -EBUSY;
113 } 114 }
114 115
@@ -116,8 +117,9 @@ static int dt2815_ao_insn(struct comedi_device *dev, struct comedi_subdevice *s,
116 117
117 status = dt2815_wait_for_status(dev, 0x10); 118 status = dt2815_wait_for_status(dev, 0x10);
118 if (status != 0x10) { 119 if (status != 0x10) {
119 printk(KERN_WARNING "dt2815: failed to write high byte " 120 dev_dbg(dev->class_dev,
120 "on %d reason %x\n", chan, status); 121 "failed to write high byte on %d reason %x\n",
122 chan, status);
121 return -EBUSY; 123 return -EBUSY;
122 } 124 }
123 devpriv->ao_readback[chan] = data[i]; 125 devpriv->ao_readback[chan] = data[i];