Staging: comedi: Remove str_TimerDetails typedef in addi-data/addi_eeprom.c
[safe/jmp/linux-2.6] / drivers / staging / comedi / drivers / pcmda12.c
index d9f0b03..2a1ff46 100644 (file)
@@ -68,9 +68,9 @@ Configuration Options:
 /*
  * Bords
  */
-typedef struct pcmda12_board_struct {
+struct pcmda12_board {
        const char *name;
-} pcmda12_board;
+};
 
 /* note these have no effect and are merely here for reference..
    these are configured by jumpering the board! */
@@ -81,7 +81,7 @@ static const struct comedi_lrange pcmda12_ranges = {
                }
 };
 
-static const pcmda12_board pcmda12_boards[] = {
+static const struct pcmda12_board pcmda12_boards[] = {
        {
              name:     "pcmda12",
                },
@@ -90,14 +90,16 @@ static const pcmda12_board pcmda12_boards[] = {
 /*
  * Useful for shorthand access to the particular board structure
  */
-#define thisboard ((const pcmda12_board *)dev->board_ptr)
+#define thisboard ((const struct pcmda12_board *)dev->board_ptr)
+
+struct pcmda12_private {
 
-typedef struct {
        unsigned int ao_readback[CHANS];
        int simultaneous_xfer_mode;
-} pcmda12_private;
+};
+
 
-#define devpriv ((pcmda12_private *)(dev->private))
+#define devpriv ((struct pcmda12_private *)(dev->private))
 
 /*
  * The struct comedi_driver structure tells the Comedi core module
@@ -105,7 +107,7 @@ typedef struct {
  * the board, and also about the kernel module that contains
  * the device code.
  */
-static int pcmda12_attach(struct comedi_device * dev, comedi_devconfig * it);
+static int pcmda12_attach(struct comedi_device * dev, struct comedi_devconfig * it);
 static int pcmda12_detach(struct comedi_device * dev);
 
 static void zero_chans(struct comedi_device * dev);
@@ -134,8 +136,8 @@ static struct comedi_driver driver = {
         * devices are such boards.
         */
       board_name:&pcmda12_boards[0].name,
-      offset:sizeof(pcmda12_board),
-      num_names:sizeof(pcmda12_boards) / sizeof(pcmda12_board),
+      offset:sizeof(struct pcmda12_board),
+      num_names:sizeof(pcmda12_boards) / sizeof(struct pcmda12_board),
 };
 
 static int ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s,
@@ -149,7 +151,7 @@ static int ao_rinsn(struct comedi_device * dev, struct comedi_subdevice * s,
  * in the driver structure, dev->board_ptr contains that
  * address.
  */
-static int pcmda12_attach(struct comedi_device * dev, comedi_devconfig * it)
+static int pcmda12_attach(struct comedi_device * dev, struct comedi_devconfig * it)
 {
        struct comedi_subdevice *s;
        unsigned long iobase;
@@ -174,7 +176,7 @@ static int pcmda12_attach(struct comedi_device * dev, comedi_devconfig * it)
  * Allocate the private structure area.  alloc_private() is a
  * convenient macro defined in comedidev.h.
  */
-       if (alloc_private(dev, sizeof(pcmda12_private)) < 0) {
+       if (alloc_private(dev, sizeof(struct pcmda12_private)) < 0) {
                printk("cannot allocate private data structure\n");
                return -ENOMEM;
        }