Skip to content

Commit

Permalink
staging: comedi: daqboard2000: remove range_daqboard2000_ao
Browse files Browse the repository at this point in the history
This comedi_lrange is the same as the global range_bipolar10
exported by the comedi core. Use that range instead.

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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 19, 2012
1 parent 33214ce commit 9e794ee
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/staging/comedi/drivers/daqboard2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,6 @@ static const struct comedi_lrange range_daqboard2000_ai = { 13, {
}
};

static const struct comedi_lrange range_daqboard2000_ao = { 1, {
RANGE(-10, 10)
}
};

/*
* Register Memory Map
*/
Expand Down Expand Up @@ -816,7 +811,7 @@ static int daqboard2000_attach_pci(struct comedi_device *dev,
s->maxdata = 0xffff;
s->insn_read = daqboard2000_ao_insn_read;
s->insn_write = daqboard2000_ao_insn_write;
s->range_table = &range_daqboard2000_ao;
s->range_table = &range_bipolar10;

s = &dev->subdevices[2];
result = subdev_8255_init(dev, s, daqboard2000_8255_cb,
Expand Down

0 comments on commit 9e794ee

Please sign in to comment.