diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-09-11 22:48:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-11 23:03:15 +0200 |
commit | abdeac3fd65534dd9b8f46a0fa3ce5c9d545a8f7 (patch) | |
tree | 0ebc593351883b2ad1287caff5b4265674575193 /drivers | |
parent | staging: comedi: icp_multi: remove ranglist_ao from boardinfo (diff) | |
download | linux-abdeac3fd65534dd9b8f46a0fa3ce5c9d545a8f7.tar.xz linux-abdeac3fd65534dd9b8f46a0fa3ce5c9d545a8f7.zip |
staging: comedi: icp_multi: remove rangelist_ai from boardinfo
There is only one board type supported by this driver and the
analog input ranges are constant. Remove the boardinfo for it.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/icp_multi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/icp_multi.c b/drivers/staging/comedi/drivers/icp_multi.c index e7496225f3c1..3a2fc740c5fc 100644 --- a/drivers/staging/comedi/drivers/icp_multi.c +++ b/drivers/staging/comedi/drivers/icp_multi.c @@ -130,7 +130,6 @@ struct boardtype { int iorange; /* I/O range len */ char have_irq; /* 1=card support IRQ */ char cardtype; /* 0=ICP Multi */ - const struct comedi_lrange *rangelist_ai; /* rangelist for A/D */ const char *rangecode; /* range codes for programming */ }; @@ -804,7 +803,7 @@ static int icp_multi_attach(struct comedi_device *dev, s->n_chan = 16; s->maxdata = 0x0fff; s->len_chanlist = 16; - s->range_table = this_board->rangelist_ai; + s->range_table = &range_analog; s->insn_read = icp_multi_insn_read_ai; subdev++; @@ -880,7 +879,6 @@ static const struct boardtype boardtypes[] = { .iorange = IORANGE_ICP_MULTI, .have_irq = 1, .cardtype = TYPE_ICP_MULTI, - .rangelist_ai = &range_analog, .rangecode = range_codes_analog, }, }; |