staging: comedi: pcl816: remove 'rangelist_ao' from boardinfo
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 17 Feb 2014 21:26:46 +0000 (14:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:53:53 +0000 (11:53 -0800)
The 'rangelist_ao' is the same for all board types. Remove this data
from the 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/pcl816.c

index 8a10738e013aca6b24cdd24c5e2a5deec4e6b8ea..5af687ab6b2229a0e7ff59661b5e4178823c40ce 100644 (file)
@@ -99,7 +99,6 @@ struct pcl816_board {
        int n_dichan;
        int n_dochan;
        const struct comedi_lrange *ai_range_type;
-       const struct comedi_lrange *ao_range_type;
        unsigned int IRQbits;
        unsigned int DMAbits;
        int ai_maxdata;
@@ -118,7 +117,6 @@ static const struct pcl816_board boardtypes[] = {
                .n_dichan       = 16,
                .n_dochan       = 16,
                .ai_range_type  = &range_pcl816,
-               .ao_range_type  = &range_pcl816,
                .IRQbits        = 0x00fc,
                .DMAbits        = 0x0a,
                .ai_maxdata     = 0xffff,
@@ -134,7 +132,6 @@ static const struct pcl816_board boardtypes[] = {
                .n_dichan       = 16,
                .n_dochan       = 16,
                .ai_range_type  = &range_pcl816,
-               .ao_range_type  = &range_pcl816,
                .IRQbits        = 0x00fc,
                .DMAbits        = 0x0a,
                .ai_maxdata     = 0x3fff,
@@ -989,7 +986,7 @@ case COMEDI_SUBD_AO:
        s->n_chan = board->n_aochan;
        s->maxdata = board->ao_maxdata;
        s->len_chanlist = board->ao_chanlist;
-       s->range_table = board->ao_range_type;
+       s->range_table = &range_pcl816;
        break;
 
 case COMEDI_SUBD_DI: