Remove timer_poll.
authorDavid Schleef <ds@schleef.org>
Tue, 9 Jul 2002 00:25:55 +0000 (00:25 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 9 Jul 2002 00:25:55 +0000 (00:25 +0000)
comedi/drivers/comedi_rt_timer.c

index 79b99868b08338d9faff06d5a89a524b28257415..20af4a4c1da98d5c9db3745957c6fccd80b59ee7 100644 (file)
@@ -571,13 +571,6 @@ static int timer_start_cmd(comedi_device *dev, comedi_subdevice *s)
        return 0;
 }
 
-static int timer_poll(comedi_device *dev,comedi_subdevice *s)
-{
-       /* This it pretty generic code, perhaps it should be the
-        * default for any subdevice that doesn't implement poll. */
-       return s->async->buf_int_count - s->async->buf_user_count;
-}
-
 static int timer_attach(comedi_device *dev,comedi_devconfig *it)
 {
        int ret;
@@ -619,7 +612,6 @@ static int timer_attach(comedi_device *dev,comedi_devconfig *it)
        s->maxdata=emul_s->maxdata;
        s->range_table=emul_s->range_table;
        s->range_table_list=emul_s->range_table_list;
-       s->poll=timer_poll;
        switch(emul_s->type){
        case COMEDI_SUBD_AI:
                s->insn_read=timer_insn;