[PATCH 32/87] staging: comedi: pcl816: remove 'ai_range_type' from boardinfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All the board types use the same analog input range_table. Remove this
data from the boardinfo.

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Cc: Ian Abbott <abbotti@xxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/staging/comedi/drivers/pcl816.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/staging/comedi/drivers/pcl816.c b/drivers/staging/comedi/drivers/pcl816.c
index a62e8e4..fd12ede 100644
--- a/drivers/staging/comedi/drivers/pcl816.c
+++ b/drivers/staging/comedi/drivers/pcl816.c
@@ -94,7 +94,6 @@ struct pcl816_board {
 	const char *name;
 	unsigned int ai_ns_min;
 	int n_aochan;
-	const struct comedi_lrange *ai_range_type;
 	unsigned int IRQbits;
 	int ai_maxdata;
 	int ao_maxdata;
@@ -105,7 +104,6 @@ static const struct pcl816_board boardtypes[] = {
 		.name		= "pcl816",
 		.ai_ns_min	= 10000,
 		.n_aochan	= 1,
-		.ai_range_type	= &range_pcl816,
 		.IRQbits	= 0x00fc,
 		.ai_maxdata	= 0xffff,
 		.ao_maxdata	= 0xffff,
@@ -113,7 +111,6 @@ static const struct pcl816_board boardtypes[] = {
 		.name		= "pcl814b",
 		.ai_ns_min	= 10000,
 		.n_aochan	= 1,
-		.ai_range_type	= &range_pcl816,
 		.IRQbits	= 0x00fc,
 		.ai_maxdata	= 0x3fff,
 		.ao_maxdata	= 0x3fff,
@@ -919,7 +916,7 @@ static int pcl816_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 	s->subdev_flags	= SDF_CMD_READ | SDF_DIFF;
 	s->n_chan	= 16;
 	s->maxdata	= board->ai_maxdata;
-	s->range_table	= board->ai_range_type;
+	s->range_table	= &range_pcl816;
 	s->insn_read	= pcl816_ai_insn_read;
 	if (dev->irq) {
 		dev->read_subdev = s;
-- 
1.8.5.2

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux