From: H Hartley Sweeten Date: Sat, 8 Sep 2012 00:46:12 +0000 (-0700) Subject: staging: comedi: me4000: remove me4000_ao_range X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4683f9f8010523701d87eb56643a85bec947939f;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git staging: comedi: me4000: remove me4000_ao_range 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/me4000.c b/drivers/staging/comedi/drivers/me4000.c index ee028a335db4..e8ab3f5587ed 100644 --- a/drivers/staging/comedi/drivers/me4000.c +++ b/drivers/staging/comedi/drivers/me4000.c @@ -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; @@ -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 {