This member of the boardinfo 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>
struct pcl816_board {
const char *name;
- int n_aochan;
unsigned int IRQbits;
int ai_maxdata;
int ao_maxdata;
static const struct pcl816_board boardtypes[] = {
{
.name = "pcl816",
- .n_aochan = 1,
.IRQbits = 0x00fc,
.ai_maxdata = 0xffff,
.ao_maxdata = 0xffff,
.ai_chanlist = 1024,
}, {
.name = "pcl814b",
- .n_aochan = 1,
.IRQbits = 0x00fc,
.ai_maxdata = 0x3fff,
.ao_maxdata = 0x3fff,
#if 0
subdevs[1] = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE | SDF_GROUND;
- s->n_chan = board->n_aochan;
+ s->n_chan = 1;
s->maxdata = board->ao_maxdata;
s->range_table = &range_pcl816;
break;