Commit 31baee58 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: pcl816: remove 'n_aochan' from boardinfo

This member of the boardinfo is the same for all board types. Remove this
data from the boardinfo.
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 d39c5ed7
...@@ -87,7 +87,6 @@ static const struct comedi_lrange range_pcl816 = { ...@@ -87,7 +87,6 @@ static const struct comedi_lrange range_pcl816 = {
struct pcl816_board { struct pcl816_board {
const char *name; const char *name;
int n_aochan;
unsigned int IRQbits; unsigned int IRQbits;
int ai_maxdata; int ai_maxdata;
int ao_maxdata; int ao_maxdata;
...@@ -97,14 +96,12 @@ struct pcl816_board { ...@@ -97,14 +96,12 @@ struct pcl816_board {
static const struct pcl816_board boardtypes[] = { static const struct pcl816_board boardtypes[] = {
{ {
.name = "pcl816", .name = "pcl816",
.n_aochan = 1,
.IRQbits = 0x00fc, .IRQbits = 0x00fc,
.ai_maxdata = 0xffff, .ai_maxdata = 0xffff,
.ao_maxdata = 0xffff, .ao_maxdata = 0xffff,
.ai_chanlist = 1024, .ai_chanlist = 1024,
}, { }, {
.name = "pcl814b", .name = "pcl814b",
.n_aochan = 1,
.IRQbits = 0x00fc, .IRQbits = 0x00fc,
.ai_maxdata = 0x3fff, .ai_maxdata = 0x3fff,
.ao_maxdata = 0x3fff, .ao_maxdata = 0x3fff,
...@@ -890,7 +887,7 @@ static int pcl816_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -890,7 +887,7 @@ static int pcl816_attach(struct comedi_device *dev, struct comedi_devconfig *it)
#if 0 #if 0
subdevs[1] = COMEDI_SUBD_AO; subdevs[1] = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE | SDF_GROUND; s->subdev_flags = SDF_WRITABLE | SDF_GROUND;
s->n_chan = board->n_aochan; s->n_chan = 1;
s->maxdata = board->ao_maxdata; s->maxdata = board->ao_maxdata;
s->range_table = &range_pcl816; s->range_table = &range_pcl816;
break; break;
......
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