From: Frank Mori Hess Date: Fri, 5 Jul 2002 22:00:57 +0000 (+0000) Subject: converted to use comedi_buf_put() X-Git-Tag: r0_7_66~169 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=531086c09ca8629d6f264101274f675e9723305b;p=comedi.git converted to use comedi_buf_put() --- 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); }