]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: comedi: adv_pci1724: rename ao_ranges_1724
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 20 Nov 2014 22:11:02 +0000 (15:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 23:36:42 +0000 (15:36 -0800)
For aesthetics, rename the analog output comedi_lrange table so
it has namespace associated with the driver.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adv_pci1724.c

index 1201733fc9b072283dc6dccd03ef9d9e090b7f0c..a8d28403262e731a56f2cd6329ad33403b37d1ef 100644 (file)
@@ -70,7 +70,7 @@
 #define PCI1724_BOARD_ID_REG           0x10
 #define PCI1724_BOARD_ID_MASK          (0xf << 0)
 
-static const struct comedi_lrange ao_ranges_1724 = {
+static const struct comedi_lrange adv_pci1724_ao_ranges = {
        4, {
                BIP_RANGE(10),
                RANGE_mA(0, 20),
@@ -151,7 +151,7 @@ static int adv_pci1724_auto_attach(struct comedi_device *dev,
        s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
        s->n_chan       = 32;
        s->maxdata      = 0x3fff;
-       s->range_table  = &ao_ranges_1724;
+       s->range_table  = &adv_pci1724_ao_ranges;
        s->insn_write   = adv_pci1724_insn_write;
        s->private      = (void *)PCI1724_DAC_CTRL_MODE_NORMAL;