From: David Schleef Date: Tue, 9 Jul 2002 00:25:55 +0000 (+0000) Subject: Remove timer_poll. X-Git-Tag: r0_7_66~156 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=06d4db616fcdf31ecd6f07bf54d20df632afddb9;p=comedi.git Remove timer_poll. --- diff --git a/comedi/drivers/comedi_rt_timer.c b/comedi/drivers/comedi_rt_timer.c index 79b99868..20af4a4c 100644 --- a/comedi/drivers/comedi_rt_timer.c +++ b/comedi/drivers/comedi_rt_timer.c @@ -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;