Staging: comedi: Remove labpc_board_struct typedef
authorBill Pemberton <wfp5p@virginia.edu>
Wed, 25 Mar 2009 15:06:56 +0000 (11:06 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:27 +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_labpc.c
drivers/staging/comedi/drivers/ni_labpc.h
drivers/staging/comedi/drivers/ni_labpc_cs.c

index 37898d8474cd0808bb6bfba6bd1af9b9fd3fc87f..d7641cd920bee9863264a1aca94eeea44f20de80 100644 (file)
@@ -360,7 +360,7 @@ static inline void labpc_writeb(unsigned int byte, unsigned long address)
        writeb(byte, (void *)address);
 }
 
-static const labpc_board labpc_boards[] = {
+static const struct labpc_board_struct labpc_boards[] = {
        {
              name:     "lab-pc-1200",
              ai_speed:10000,
@@ -422,7 +422,7 @@ static const labpc_board labpc_boards[] = {
 /*
  * Useful for shorthand access to the particular board structure
  */
-#define thisboard ((labpc_board *)dev->board_ptr)
+#define thisboard ((struct labpc_board_struct *)dev->board_ptr)
 
 static const int dma_buffer_size = 0xff00;     // size in bytes of dma buffer
 static const int sample_size = 2;      // 2 bytes per sample
@@ -434,9 +434,9 @@ static struct comedi_driver driver_labpc = {
        .module = THIS_MODULE,
        .attach = labpc_attach,
        .detach = labpc_common_detach,
-       .num_names = sizeof(labpc_boards) / sizeof(labpc_board),
+       .num_names = sizeof(labpc_boards) / sizeof(struct labpc_board_struct),
        .board_name = &labpc_boards[0].name,
-       .offset = sizeof(labpc_board),
+       .offset = sizeof(struct labpc_board_struct),
 };
 
 #ifdef CONFIG_COMEDI_PCI
index b44b0d3d02f1efb5e4aa4fdbdf630206440005a6..cf53a94a51a22303d5fd58638571e07708182064 100644 (file)
@@ -32,7 +32,7 @@ enum labpc_register_layout { labpc_plus_layout, labpc_1200_layout };
 enum transfer_type { fifo_not_empty_transfer, fifo_half_full_transfer,
                isa_dma_transfer };
 
-typedef struct labpc_board_struct {
+struct labpc_board_struct {
        const char *name;
        int device_id;          // device id for pci and pcmcia boards
        int ai_speed;           // maximum input speed in nanoseconds
@@ -44,7 +44,7 @@ typedef struct labpc_board_struct {
        const int *ai_range_is_unipolar;
        unsigned ai_scan_up:1;  // board can auto scan up in ai channels, not just down
        unsigned memory_mapped_io:1;    /* uses memory mapped io instead of ioports */
-} labpc_board;
+};
 
 typedef struct {
        struct mite_struct *mite;       // for mite chip on pci-1200
index 0c2a196adaffbd736af6b3c121ac4db0cba6c064..1e58d2e40ab839787cfad80152aa1dc7a7f8ab98 100644 (file)
@@ -81,7 +81,7 @@ static struct pcmcia_device *pcmcia_cur_dev = NULL;
 
 static int labpc_attach(struct comedi_device * dev, struct comedi_devconfig * it);
 
-static const labpc_board labpc_cs_boards[] = {
+static const struct labpc_board_struct labpc_cs_boards[] = {
        {
              name:     "daqcard-1200",
              device_id:0x103,  // 0x10b is manufacturer id, 0x103 is device id
@@ -114,16 +114,16 @@ static const labpc_board labpc_cs_boards[] = {
 /*
  * Useful for shorthand access to the particular board structure
  */
-#define thisboard ((const labpc_board *)dev->board_ptr)
+#define thisboard ((const struct labpc_board_struct *)dev->board_ptr)
 
 static struct comedi_driver driver_labpc_cs = {
        .driver_name = "ni_labpc_cs",
        .module = THIS_MODULE,
        .attach = &labpc_attach,
        .detach = &labpc_common_detach,
-       .num_names = sizeof(labpc_cs_boards) / sizeof(labpc_board),
+       .num_names = sizeof(labpc_cs_boards) / sizeof(struct labpc_board_struct),
        .board_name = &labpc_cs_boards[0].name,
-       .offset = sizeof(labpc_board),
+       .offset = sizeof(struct labpc_board_struct),
 };
 
 static int labpc_attach(struct comedi_device * dev, struct comedi_devconfig * it)