From: Anders Blomdell Date: Fri, 24 Aug 2012 15:07:14 +0000 (+0100) Subject: serial2002: Set range for digital inputs and outputs... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7474d26c85994d3b4b172d95e2e7b58362f8a206;p=comedi.git serial2002: Set range for digital inputs and outputs... --- diff --git a/comedi/drivers/serial2002.c b/comedi/drivers/serial2002.c index c0335f47..5b3ec386 100644 --- a/comedi/drivers/serial2002.c +++ b/comedi/drivers/serial2002.c @@ -616,7 +616,9 @@ static int serial_2002_open(comedi_device * dev) kfree(s->range_table_list); s->range_table = 0; s->range_table_list = 0; - if (range) { + if (kind == 1 || kind == 2) { + s->range_table = &range_digital; + } else if (range) { s->range_table_list = range_table_list = kmalloc(sizeof (serial2002_range_table_t) *