Commit 24bc018e authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: icp_multi: rename static variable 'range_analog'

For aesthetics, rename this static variable so it has namespace
associated with the driver.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8537a1a4
...@@ -80,8 +80,8 @@ ...@@ -80,8 +80,8 @@
#define ICP_MULTI_CNTR2 0x14 /* R/W: Counter 2 */ #define ICP_MULTI_CNTR2 0x14 /* R/W: Counter 2 */
#define ICP_MULTI_CNTR3 0x16 /* R/W: Counter 3 */ #define ICP_MULTI_CNTR3 0x16 /* R/W: Counter 3 */
/* Define analogue range */ /* analog input and output have the same range options */
static const struct comedi_lrange range_analog = { static const struct comedi_lrange icp_multi_ranges = {
4, { 4, {
UNI_RANGE(5), UNI_RANGE(5),
UNI_RANGE(10), UNI_RANGE(10),
...@@ -475,7 +475,7 @@ static int icp_multi_auto_attach(struct comedi_device *dev, ...@@ -475,7 +475,7 @@ static int icp_multi_auto_attach(struct comedi_device *dev,
s->n_chan = 16; s->n_chan = 16;
s->maxdata = 0x0fff; s->maxdata = 0x0fff;
s->len_chanlist = 16; s->len_chanlist = 16;
s->range_table = &range_analog; s->range_table = &icp_multi_ranges;
s->insn_read = icp_multi_insn_read_ai; s->insn_read = icp_multi_insn_read_ai;
s = &dev->subdevices[1]; s = &dev->subdevices[1];
...@@ -484,7 +484,7 @@ static int icp_multi_auto_attach(struct comedi_device *dev, ...@@ -484,7 +484,7 @@ static int icp_multi_auto_attach(struct comedi_device *dev,
s->n_chan = 4; s->n_chan = 4;
s->maxdata = 0x0fff; s->maxdata = 0x0fff;
s->len_chanlist = 4; s->len_chanlist = 4;
s->range_table = &range_analog; s->range_table = &icp_multi_ranges;
s->insn_write = icp_multi_ao_insn_write; s->insn_write = icp_multi_ao_insn_write;
ret = comedi_alloc_subdev_readback(s); ret = comedi_alloc_subdev_readback(s);
......
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