staging: comedi: dt282x: convert dt282x_ao_inttrig() messages
Convert the messages in this function to dev_err(). 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>
This commit is contained in:
parent
e0bee2de37
commit
50dbda4a9e
1 changed files with 2 additions and 2 deletions
|
@ -885,7 +885,7 @@ static int dt282x_ao_inttrig(struct comedi_device *dev,
|
||||||
size = cfc_read_array_from_buffer(s, devpriv->dma[0].buf,
|
size = cfc_read_array_from_buffer(s, devpriv->dma[0].buf,
|
||||||
devpriv->dma_maxsize);
|
devpriv->dma_maxsize);
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
printk(KERN_ERR "dt282x: AO underrun\n");
|
dev_err(dev->class_dev, "AO underrun\n");
|
||||||
return -EPIPE;
|
return -EPIPE;
|
||||||
}
|
}
|
||||||
prep_ao_dma(dev, 0, size);
|
prep_ao_dma(dev, 0, size);
|
||||||
|
@ -893,7 +893,7 @@ static int dt282x_ao_inttrig(struct comedi_device *dev,
|
||||||
size = cfc_read_array_from_buffer(s, devpriv->dma[1].buf,
|
size = cfc_read_array_from_buffer(s, devpriv->dma[1].buf,
|
||||||
devpriv->dma_maxsize);
|
devpriv->dma_maxsize);
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
printk(KERN_ERR "dt282x: AO underrun\n");
|
dev_err(dev->class_dev, "AO underrun\n");
|
||||||
return -EPIPE;
|
return -EPIPE;
|
||||||
}
|
}
|
||||||
prep_ao_dma(dev, 1, size);
|
prep_ao_dma(dev, 1, size);
|
||||||
|
|
Loading…
Add table
Reference in a new issue