From 531086c09ca8629d6f264101274f675e9723305b Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 5 Jul 2002 22:00:57 +0000 Subject: [PATCH] converted to use comedi_buf_put() --- comedi/drivers/ni_atmio16d.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/comedi/drivers/ni_atmio16d.c b/comedi/drivers/ni_atmio16d.c index 478d15ab..2faf093a 100644 --- a/comedi/drivers/ni_atmio16d.c +++ b/comedi/drivers/ni_atmio16d.c @@ -270,20 +270,8 @@ static void atmio16d_interrupt(int irq, void *d, struct pt_regs *regs) // printk("atmio16d_interrupt!\n"); - *(sampl_t *)(s->async->data+s->async->buf_int_ptr) = - inw(dev->iobase+AD_FIFO_REG); - s->async->buf_int_ptr += sizeof(sampl_t); - s->async->buf_int_count += sizeof(sampl_t); - - if((++s->async->cur_chan) >= s->async->cmd.chanlist_len) { /* one scan done */ - s->async->cur_chan = 0; - s->async->events |= COMEDI_CB_EOS; - } + comedi_buf_put( s->async, inw(dev->iobase+AD_FIFO_REG) ); - if (s->async->buf_int_ptr >= s->async->data_len) { /* buffer rollover */ - s->async->buf_int_ptr = 0; - s->async->events |= COMEDI_CB_EOBUF; - } comedi_event(dev, s, s->async->events); } -- 2.26.2