staging: comedi: das08: Mark 'JR' boards in board data
authorIan Abbott <abbotti@mev.co.uk>
Fri, 31 Aug 2012 19:41:33 +0000 (20:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 19:00:41 +0000 (12:00 -0700)
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@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das08.c
drivers/staging/comedi/drivers/das08.h

index d176b3bd551c4da05ba5fd8e946d49a9d6a70d91..e17a71e0e86427b40a988dafdd74df6a7a5dcdd2 100644 (file)
@@ -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,
index 320f56aa31485e9f5fca38580ce37fb0024ea62b..5e005302161b4a5fe4bc31ec5e086e8c9f277e83 100644 (file)
@@ -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;