staging: comedi: adv_pci1710: remove boardinfo 'ai_maxdata'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 20 Jan 2015 21:53:02 +0000 (14:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 11:59:10 +0000 (19:59 +0800)
The analog input resolution is always 12-bits in this driver. Remove the
unnecessary boardinfo.

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_pci1710.c

index 9f415fec62c1b6562b8cb87effa89d1e1e1330dd..fb5ad60889dc3710391c1c62474b5f427bd5c545 100644 (file)
@@ -195,7 +195,6 @@ struct boardtype {
        int n_aichan;           /*  num of A/D chans */
        int n_aichand;          /*  num of A/D chans in diff mode */
        int n_aochan;           /*  num of D/A chans */
-       int ai_maxdata;         /*  resolution of A/D */
        int ao_maxdata;         /*  resolution of D/A */
        const struct comedi_lrange *rangelist_ai;       /*  rangelist for A/D */
        const char *rangecode_ai;       /*  range codes for programming */
@@ -214,7 +213,6 @@ static const struct boardtype boardtypes[] = {
                .n_aichan       = 16,
                .n_aichand      = 8,
                .n_aochan       = 2,
-               .ai_maxdata     = 0x0fff,
                .ao_maxdata     = 0x0fff,
                .rangelist_ai   = &range_pci1710_3,
                .rangecode_ai   = range_codes_pci1710_3,
@@ -231,7 +229,6 @@ static const struct boardtype boardtypes[] = {
                .n_aichan       = 16,
                .n_aichand      = 8,
                .n_aochan       = 2,
-               .ai_maxdata     = 0x0fff,
                .ao_maxdata     = 0x0fff,
                .rangelist_ai   = &range_pci1710hg,
                .rangecode_ai   = range_codes_pci1710hg,
@@ -247,7 +244,6 @@ static const struct boardtype boardtypes[] = {
                .cardtype       = TYPE_PCI171X,
                .n_aichan       = 16,
                .n_aochan       = 2,
-               .ai_maxdata     = 0x0fff,
                .ao_maxdata     = 0x0fff,
                .rangelist_ai   = &range_pci17x1,
                .rangecode_ai   = range_codes_pci17x1,
@@ -263,7 +259,6 @@ static const struct boardtype boardtypes[] = {
                .cardtype       = TYPE_PCI1713,
                .n_aichan       = 32,
                .n_aichand      = 16,
-               .ai_maxdata     = 0x0fff,
                .rangelist_ai   = &range_pci1710_3,
                .rangecode_ai   = range_codes_pci1710_3,
                .ai_ns_min      = 10000,
@@ -281,7 +276,6 @@ static const struct boardtype boardtypes[] = {
                .name           = "pci1731",
                .cardtype       = TYPE_PCI171X,
                .n_aichan       = 16,
-               .ai_maxdata     = 0x0fff,
                .rangelist_ai   = &range_pci17x1,
                .rangecode_ai   = range_codes_pci17x1,
                .ai_ns_min      = 10000,
@@ -1140,7 +1134,7 @@ static int pci1710_auto_attach(struct comedi_device *dev,
                if (this_board->n_aichand)
                        s->subdev_flags |= SDF_DIFF;
                s->n_chan = this_board->n_aichan;
-               s->maxdata = this_board->ai_maxdata;
+               s->maxdata = 0x0fff;
                s->range_table = this_board->rangelist_ai;
                s->insn_read = pci171x_insn_read_ai;
                if (dev->irq) {