Commit 0edc7d83 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: serial2002: Set range for digital inputs and outputs

I got an update from the original author of this driver (Anders
Blomdell) to set the range table for digital input and digital output
subdevices.  Apply it.

Cc: Anders Blomdell <anders.blomdell@control.lth.se>
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4d480efa
...@@ -588,7 +588,9 @@ static int serial_2002_open(struct comedi_device *dev) ...@@ -588,7 +588,9 @@ static int serial_2002_open(struct comedi_device *dev)
kfree(s->range_table_list); kfree(s->range_table_list);
s->range_table = NULL; s->range_table = NULL;
s->range_table_list = NULL; s->range_table_list = NULL;
if (range) { if (kind == 1 || kind == 2) {
s->range_table = &range_digital;
} else if (range) {
s->range_table_list = range_table_list = s->range_table_list = range_table_list =
kmalloc(sizeof kmalloc(sizeof
(struct (struct
......
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