From 7474d26c85994d3b4b172d95e2e7b58362f8a206 Mon Sep 17 00:00:00 2001 From: Anders Blomdell Date: Fri, 24 Aug 2012 16:07:14 +0100 Subject: [PATCH] serial2002: Set range for digital inputs and outputs... --- comedi/drivers/serial2002.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) * -- 2.26.2