Commit 2599048a authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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

The 'io_range' 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 5fd2ca84
...@@ -44,10 +44,6 @@ Configuration Options: ...@@ -44,10 +44,6 @@ Configuration Options:
#include "comedi_fc.h" #include "comedi_fc.h"
#include "8253.h" #include "8253.h"
/* boards constants */
/* IO space len */
#define PCLx1x_RANGE 16
/* INTEL 8254 counters */ /* INTEL 8254 counters */
#define PCL816_CTR0 4 #define PCL816_CTR0 4
#define PCL816_CTR1 5 #define PCL816_CTR1 5
...@@ -104,7 +100,6 @@ struct pcl816_board { ...@@ -104,7 +100,6 @@ struct pcl816_board {
int n_dochan; int n_dochan;
const struct comedi_lrange *ai_range_type; const struct comedi_lrange *ai_range_type;
const struct comedi_lrange *ao_range_type; const struct comedi_lrange *ao_range_type;
unsigned int io_range;
unsigned int IRQbits; unsigned int IRQbits;
unsigned int DMAbits; unsigned int DMAbits;
int ai_maxdata; int ai_maxdata;
...@@ -125,7 +120,6 @@ static const struct pcl816_board boardtypes[] = { ...@@ -125,7 +120,6 @@ static const struct pcl816_board boardtypes[] = {
.n_dochan = 16, .n_dochan = 16,
.ai_range_type = &range_pcl816, .ai_range_type = &range_pcl816,
.ao_range_type = &range_pcl816, .ao_range_type = &range_pcl816,
.io_range = PCLx1x_RANGE,
.IRQbits = 0x00fc, .IRQbits = 0x00fc,
.DMAbits = 0x0a, .DMAbits = 0x0a,
.ai_maxdata = 0xffff, .ai_maxdata = 0xffff,
...@@ -143,7 +137,6 @@ static const struct pcl816_board boardtypes[] = { ...@@ -143,7 +137,6 @@ static const struct pcl816_board boardtypes[] = {
.n_dochan = 16, .n_dochan = 16,
.ai_range_type = &range_pcl816, .ai_range_type = &range_pcl816,
.ao_range_type = &range_pcl816, .ao_range_type = &range_pcl816,
.io_range = PCLx1x_RANGE,
.IRQbits = 0x00fc, .IRQbits = 0x00fc,
.DMAbits = 0x0a, .DMAbits = 0x0a,
.ai_maxdata = 0x3fff, .ai_maxdata = 0x3fff,
...@@ -884,7 +877,7 @@ static int pcl816_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -884,7 +877,7 @@ static int pcl816_attach(struct comedi_device *dev, struct comedi_devconfig *it)
/* int i; */ /* int i; */
struct comedi_subdevice *s; struct comedi_subdevice *s;
ret = comedi_request_region(dev, it->options[0], board->io_range); ret = comedi_request_region(dev, it->options[0], 0x10);
if (ret) if (ret)
return ret; return ret;
......
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