Staging: comedi: dt2811: Remove boardtype typedef
authorBill Pemberton <wfp5p@virginia.edu>
Tue, 17 Mar 2009 02:14:46 +0000 (22:14 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:13 +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/dt2811.c

index d5e529826ad9601f4b42da856b5d028ddd04a0a1..795932ec67d368c6177abc3c20c296a66b15c612 100644 (file)
@@ -191,13 +191,15 @@ static const struct comedi_lrange range_dt2811_pgl_ai_5_bipolar = { 4, {
 #define DT2811_INTENB   0x04
 #define DT2811_ADMODE   0x03
 
-typedef struct {
+struct dt2811_board {
+
        const char *name;
        const struct comedi_lrange *bip_5;
        const struct comedi_lrange *bip_2_5;
        const struct comedi_lrange *unip_5;
-} boardtype;
-static const boardtype boardtypes[] = {
+};
+
+static const struct dt2811_board boardtypes[] = {
        {"dt2811-pgh",
                        &range_dt2811_pgh_ai_5_bipolar,
                        &range_dt2811_pgh_ai_2_5_bipolar,
@@ -210,7 +212,7 @@ static const boardtype boardtypes[] = {
                },
 };
 
-#define this_board ((const boardtype *)dev->board_ptr)
+#define this_board ((const struct dt2811_board *)dev->board_ptr)
 
 static int dt2811_attach(struct comedi_device * dev, struct comedi_devconfig * it);
 static int dt2811_detach(struct comedi_device * dev);
@@ -220,8 +222,8 @@ static struct comedi_driver driver_dt2811 = {
       attach:dt2811_attach,
       detach:dt2811_detach,
       board_name:&boardtypes[0].name,
-      num_names:sizeof(boardtypes) / sizeof(boardtype),
-      offset:sizeof(boardtype),
+      num_names:sizeof(boardtypes) / sizeof(struct dt2811_board),
+      offset:sizeof(struct dt2811_board),
 };
 
 COMEDI_INITCLEANUP(driver_dt2811);