Staging: comedi: Remove ni_board typedef
authorBill Pemberton <wfp5p@virginia.edu>
Wed, 25 Mar 2009 15:04:14 +0000 (11:04 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:24 +0000 (11:00 -0700)
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/ni_atmio.c
drivers/staging/comedi/drivers/ni_pcimio.c
drivers/staging/comedi/drivers/ni_stc.h

index fcc38535afc5e12cef1eaee2e375c2da52c3ce35..72985e084f0978d6e45cc484703a65ccd1513e88 100644 (file)
@@ -114,7 +114,7 @@ are not supported.
 
 #define MAX_N_CALDACS 32
 
-static const ni_board ni_boards[] = {
+static const struct ni_board_struct ni_boards[] = {
       {device_id:44,
              isapnp_id:0x0000,/* XXX unknown */
              name:     "at-mio-16e-1",
index 3a2aba7c8dd34efa82db0cae28b1308529a924be..225f39785f0b6c615b924e4684b4ecdc54fe8e8e 100644 (file)
@@ -216,7 +216,7 @@ static const struct comedi_lrange range_ni_M_622x_ao = { 1, {
        }
 };
 
-static const ni_board ni_boards[] = {
+static const struct ni_board_struct ni_boards[] = {
        {
                        .device_id = 0x0162,    // NI also says 0x1620.  typo?
                        .name = "pci-mio-16xe-50",
index 1ebf521ab77388d07986d498e8adeb2bf9a9762d..8c03e7d85e84364777efceedc12af28e4168fe93 100644 (file)
@@ -1374,7 +1374,7 @@ enum Interrupt_C_Status_Bits {
 
 #define M_SERIES_EEPROM_SIZE 1024
 
-typedef struct ni_board_struct {
+struct ni_board_struct {
        int device_id;
        int isapnp_id;
        char *name;
@@ -1401,11 +1401,11 @@ typedef struct ni_board_struct {
        unsigned int has_analog_trig:1;
 
        enum caldac_enum caldac[3];
-} ni_board;
+};
 
-#define n_ni_boards  (sizeof(ni_boards)/sizeof(ni_board))
+#define n_ni_boards  (sizeof(ni_boards)/sizeof(struct ni_board_struct))
 
-#define boardtype (*(ni_board *)dev->board_ptr)
+#define boardtype (*(struct ni_board_struct *)dev->board_ptr)
 
 #define MAX_N_AO_CHAN 8
 #define NUM_GPCT 2