Commit 1effe42d authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: das08: Mark 'JR' boards in board data

Add a bool member `is_jr` to `struct das08_board_struct` and initialize
it to `true` in those elements of `das08_boards[]` corresponding to the
'JR' board models.  This will be used by a following patch that removes
the `ai`, `ao`, `di` and `do` members from `struct das08_board_struct`.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ffd76b32
...@@ -611,6 +611,7 @@ static const struct das08_board_struct das08_boards[] = { ...@@ -611,6 +611,7 @@ static const struct das08_board_struct das08_boards[] = {
{ {
.name = "das08/jr-ao", /* cio-das08-jr-ao.pdf */ .name = "das08/jr-ao", /* cio-das08-jr-ao.pdf */
.bustype = isa, .bustype = isa,
.is_jr = true,
.ai = das08_ai_rinsn, .ai = das08_ai_rinsn,
.ai_nbits = 12, .ai_nbits = 12,
.ai_pg = das08_pg_none, .ai_pg = das08_pg_none,
...@@ -628,6 +629,7 @@ static const struct das08_board_struct das08_boards[] = { ...@@ -628,6 +629,7 @@ static const struct das08_board_struct das08_boards[] = {
{ {
.name = "das08jr-16-ao", /* cio-das08jr-16-ao.pdf */ .name = "das08jr-16-ao", /* cio-das08jr-16-ao.pdf */
.bustype = isa, .bustype = isa,
.is_jr = true,
.ai = das08_ai_rinsn, .ai = das08_ai_rinsn,
.ai_nbits = 16, .ai_nbits = 16,
.ai_pg = das08_pg_none, .ai_pg = das08_pg_none,
...@@ -670,6 +672,7 @@ static const struct das08_board_struct das08_boards[] = { ...@@ -670,6 +672,7 @@ static const struct das08_board_struct das08_boards[] = {
{ {
.name = "das08jr/16", .name = "das08jr/16",
.bustype = isa, .bustype = isa,
.is_jr = true,
.ai = das08_ai_rinsn, .ai = das08_ai_rinsn,
.ai_nbits = 16, .ai_nbits = 16,
.ai_pg = das08_pg_none, .ai_pg = das08_pg_none,
......
...@@ -35,6 +35,7 @@ struct das08_board_struct { ...@@ -35,6 +35,7 @@ struct das08_board_struct {
const char *name; const char *name;
unsigned int id; /* id for pci/pcmcia boards */ unsigned int id; /* id for pci/pcmcia boards */
enum das08_bustype bustype; enum das08_bustype bustype;
bool is_jr; /* true for 'JR' boards */
void *ai; void *ai;
unsigned int ai_nbits; unsigned int ai_nbits;
enum das08_lrange ai_pg; enum das08_lrange ai_pg;
......
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