Commit 026d7877 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: pcl816: remove #if 0'ed out code

Remove the #if 0'ed out code that would initialize an analog output
subdevice.

The hardware does not normally support an analog output subdevice.
Analog outputs are only supported with additional "piggyback" modules.
Support for these modules is not included in the driver.
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 2d8ea891
...@@ -86,7 +86,6 @@ static const struct comedi_lrange range_pcl816 = { ...@@ -86,7 +86,6 @@ static const struct comedi_lrange range_pcl816 = {
struct pcl816_board { struct pcl816_board {
const char *name; const char *name;
int ai_maxdata; int ai_maxdata;
int ao_maxdata;
int ai_chanlist; int ai_chanlist;
}; };
...@@ -94,12 +93,10 @@ static const struct pcl816_board boardtypes[] = { ...@@ -94,12 +93,10 @@ static const struct pcl816_board boardtypes[] = {
{ {
.name = "pcl816", .name = "pcl816",
.ai_maxdata = 0xffff, .ai_maxdata = 0xffff,
.ao_maxdata = 0xffff,
.ai_chanlist = 1024, .ai_chanlist = 1024,
}, { }, {
.name = "pcl814b", .name = "pcl814b",
.ai_maxdata = 0x3fff, .ai_maxdata = 0x3fff,
.ao_maxdata = 0x3fff,
.ai_chanlist = 1024, .ai_chanlist = 1024,
}, },
}; };
...@@ -645,16 +642,9 @@ static int pcl816_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -645,16 +642,9 @@ static int pcl816_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->cancel = pcl816_ai_cancel; s->cancel = pcl816_ai_cancel;
} }
/* Analog OUtput subdevice */ /* Piggyback Slot1 subdevice */
s = &dev->subdevices[2]; s = &dev->subdevices[1];
s->type = COMEDI_SUBD_UNUSED; s->type = COMEDI_SUBD_UNUSED;
#if 0
subdevs[1] = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE | SDF_GROUND;
s->n_chan = 1;
s->maxdata = board->ao_maxdata;
s->range_table = &range_pcl816;
#endif
/* Digital Input subdevice */ /* Digital Input subdevice */
s = &dev->subdevices[2]; s = &dev->subdevices[2];
......
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