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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -588,7 +588,9 @@ static int serial_2002_open(struct comedi_device *dev)
				kfree(s->range_table_list);
				s->range_table = 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 =
					    kmalloc(sizeof
						    (struct