Skip to content

Commit

Permalink
staging: comedi: me4000: remove me4000_ao_range
Browse files Browse the repository at this point in the history
Use range_bipolar10, which is exported by the comedi core, instead
of creating a local symbol for an identical range.

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 8, 2012
1 parent 09253b3 commit 4683f9f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions drivers/staging/comedi/drivers/me4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,6 @@ static const struct comedi_lrange me4000_ai_range = {
}
};

static const struct comedi_lrange me4000_ao_range = {
1,
{
BIP_RANGE(10),
}
};

static int me4000_probe(struct comedi_device *dev, struct comedi_devconfig *it)
{
struct me4000_info *info;
Expand Down Expand Up @@ -1903,7 +1896,7 @@ static int me4000_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->subdev_flags = SDF_WRITEABLE | SDF_COMMON | SDF_GROUND;
s->n_chan = thisboard->ao_nchan;
s->maxdata = 0xFFFF; /* 16 bit DAC */
s->range_table = &me4000_ao_range;
s->range_table = &range_bipolar10;
s->insn_write = me4000_ao_insn_write;
s->insn_read = me4000_ao_insn_read;
} else {
Expand Down

0 comments on commit 4683f9f

Please sign in to comment.