remove usage of comedi_buf_copy_from()
authorDavid Schleef <ds@schleef.org>
Thu, 25 Jul 2002 19:57:32 +0000 (19:57 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 25 Jul 2002 19:57:32 +0000 (19:57 +0000)
comedi/drivers/dt282x.c

index 7959efa2a9399273732a6e11047b4c1edf1f2718..46a87a8f061f3e3752f6052d76ff63d5682d138b 100644 (file)
@@ -453,7 +453,7 @@ static void dt282x_ao_dma_interrupt(comedi_device * dev)
                comedi_event(dev,s,s->async->events);
                return;
        }
-       comedi_buf_copy_from(s->async, ptr, size);
+       comedi_buf_memcpy_from(s->async, 0, ptr, size);
        comedi_buf_read_free(s->async, size);
        prep_ao_dma(dev,i,size);
        enable_dma(devpriv->dma[i].chan);
@@ -1029,7 +1029,7 @@ static int dt282x_ao_inttrig(comedi_device *dev,comedi_subdevice *s,
                rt_printk("dt282x: AO underrun\n");
                return -EPIPE;
        }
-       comedi_buf_copy_from(s->async, devpriv->dma[0].buf, size);
+       comedi_buf_memcpy_from(s->async, 0, devpriv->dma[0].buf, size);
        comedi_buf_read_free(s->async, size);
        prep_ao_dma(dev,0,size);
        enable_dma(devpriv->dma[0].chan);
@@ -1040,7 +1040,7 @@ static int dt282x_ao_inttrig(comedi_device *dev,comedi_subdevice *s,
                rt_printk("dt282x: AO underrun\n");
                return -EPIPE;
        }
-       comedi_buf_copy_from(s->async, devpriv->dma[1].buf, size);
+       comedi_buf_memcpy_from(s->async, 0, devpriv->dma[1].buf, size);
        comedi_buf_read_free(s->async, size);
        prep_ao_dma(dev,1,size);
        enable_dma(devpriv->dma[1].chan);