Staging: comedi: Remove dt3k_boardtype typedef
authorBill Pemberton <wfp5p@virginia.edu>
Tue, 17 Mar 2009 02:15:02 +0000 (22:15 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:08 +0000 (14:54 -0700)
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/dt3000.c

index a8367d9c0a4c68c5b78f9ceac2247e17f3dd16ae..fc4389f25eb0fb6c515ceec7f7bda774857be817 100644 (file)
@@ -81,7 +81,8 @@ static const struct comedi_lrange range_dt3000_ai_pgl = { 4, {
        }
 };
 
-typedef struct {
+struct dt3k_boardtype {
+
        const char *name;
        unsigned int device_id;
        int adchan;
@@ -90,9 +91,10 @@ typedef struct {
        const struct comedi_lrange *adrange;
        int dachan;
        int dabits;
-} dt3k_boardtype;
+};
+
 
-static const dt3k_boardtype dt3k_boardtypes[] = {
+static const struct dt3k_boardtype dt3k_boardtypes[] = {
       {name:"dt3001",
              device_id:0x22,
              adchan:   16,
@@ -158,8 +160,8 @@ static const dt3k_boardtype dt3k_boardtypes[] = {
                },
 };
 
-#define n_dt3k_boards sizeof(dt3k_boardtypes)/sizeof(dt3k_boardtype)
-#define this_board ((const dt3k_boardtype *)dev->board_ptr)
+#define n_dt3k_boards sizeof(dt3k_boardtypes)/sizeof(struct dt3k_boardtype)
+#define this_board ((const struct dt3k_boardtype *)dev->board_ptr)
 
 static DEFINE_PCI_DEVICE_TABLE(dt3k_pci_table) = {
        {PCI_VENDOR_ID_DT, 0x0022, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},