Skip to content

Commit

Permalink
staging: comedi: serial2002: Set range for digital inputs and outputs
Browse files Browse the repository at this point in the history
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: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 4d480ef commit 0edc7d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/staging/comedi/drivers/serial2002.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0edc7d8

Please sign in to comment.