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: Ian Abbott <abbotti@xxxxxxxxx> --- drivers/staging/comedi/drivers/das08.c | 3 +++ drivers/staging/comedi/drivers/das08.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/staging/comedi/drivers/das08.c b/drivers/staging/comedi/drivers/das08.c index 9d45103..f6b5a4c 100644 --- a/drivers/staging/comedi/drivers/das08.c +++ b/drivers/staging/comedi/drivers/das08.c @@ -611,6 +611,7 @@ static const struct das08_board_struct das08_boards[] = { { .name = "das08/jr-ao", /* cio-das08-jr-ao.pdf */ .bustype = isa, + .is_jr = true, .ai = das08_ai_rinsn, .ai_nbits = 12, .ai_pg = das08_pg_none, @@ -628,6 +629,7 @@ static const struct das08_board_struct das08_boards[] = { { .name = "das08jr-16-ao", /* cio-das08jr-16-ao.pdf */ .bustype = isa, + .is_jr = true, .ai = das08_ai_rinsn, .ai_nbits = 16, .ai_pg = das08_pg_none, @@ -670,6 +672,7 @@ static const struct das08_board_struct das08_boards[] = { { .name = "das08jr/16", .bustype = isa, + .is_jr = true, .ai = das08_ai_rinsn, .ai_nbits = 16, .ai_pg = das08_pg_none, diff --git a/drivers/staging/comedi/drivers/das08.h b/drivers/staging/comedi/drivers/das08.h index 320f56a..5e00530 100644 --- a/drivers/staging/comedi/drivers/das08.h +++ b/drivers/staging/comedi/drivers/das08.h @@ -35,6 +35,7 @@ struct das08_board_struct { const char *name; unsigned int id; /* id for pci/pcmcia boards */ enum das08_bustype bustype; + bool is_jr; /* true for 'JR' boards */ void *ai; unsigned int ai_nbits; enum das08_lrange ai_pg; -- 1.7.12 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel