Commit 7c7c42cd authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: addi_apci_2032: remove the timer s->range_table

The timer subdevice does not have a digital range. Its range of
0 to 0xff is the value used to set the reload timer.

Remove the setting of s->range_table. The comedi core will then
set it to range_unknown.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cf110882
...@@ -281,7 +281,6 @@ static int apci2032_auto_attach(struct comedi_device *dev, ...@@ -281,7 +281,6 @@ static int apci2032_auto_attach(struct comedi_device *dev,
s->subdev_flags = SDF_WRITEABLE; s->subdev_flags = SDF_WRITEABLE;
s->n_chan = 1; s->n_chan = 1;
s->maxdata = 0xff; s->maxdata = 0xff;
s->range_table = &range_digital;
s->insn_write = apci2032_wdog_insn_write; s->insn_write = apci2032_wdog_insn_write;
s->insn_read = apci2032_wdog_insn_read; s->insn_read = apci2032_wdog_insn_read;
s->insn_config = apci2032_wdog_insn_config; s->insn_config = apci2032_wdog_insn_config;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment