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

index fc08d039705c0c385c3f53a39370c1c264821209..0bfe4c954eb5272c4716f9b33f69bfac75d6d0c6 100644 (file)
@@ -685,12 +685,12 @@ static void das16cs_pcmcia_detach(struct pcmcia_device *);
 
 static dev_info_t dev_info = "cb_das16_cs";
 
-typedef struct local_info_t {
+struct local_info_t {
        struct pcmcia_device *link;
        dev_node_t node;
        int stop;
        struct bus_operations *bus;
-} local_info_t;
+};
 
 /*======================================================================
 
@@ -706,12 +706,12 @@ typedef struct local_info_t {
 
 static int das16cs_pcmcia_attach(struct pcmcia_device *link)
 {
-       local_info_t *local;
+       struct local_info_t *local;
 
        DEBUG(0, "das16cs_pcmcia_attach()\n");
 
        /* Allocate space for private device-specific data */
-       local = kzalloc(sizeof(local_info_t), GFP_KERNEL);
+       local = kzalloc(sizeof(struct local_info_t), GFP_KERNEL);
        if (!local)
                return -ENOMEM;
        local->link = link;
@@ -738,17 +738,17 @@ static void das16cs_pcmcia_detach(struct pcmcia_device *link)
        DEBUG(0, "das16cs_pcmcia_detach(0x%p)\n", link);
 
        if (link->dev_node) {
-               ((local_info_t *) link->priv)->stop = 1;
+               ((struct local_info_t *) link->priv)->stop = 1;
                das16cs_pcmcia_release(link);
        }
-       /* This points to the parent local_info_t struct */
+       /* This points to the parent struct local_info_t struct */
        if (link->priv)
                kfree(link->priv);
 }                              /* das16cs_pcmcia_detach */
 
 static void das16cs_pcmcia_config(struct pcmcia_device *link)
 {
-       local_info_t *dev = link->priv;
+       struct local_info_t *dev = link->priv;
        tuple_t tuple;
        cisparse_t parse;
        int last_fn, last_ret;
@@ -903,7 +903,7 @@ static void das16cs_pcmcia_release(struct pcmcia_device *link)
 
 static int das16cs_pcmcia_suspend(struct pcmcia_device *link)
 {
-       local_info_t *local = link->priv;
+       struct local_info_t *local = link->priv;
 
        /* Mark the device as stopped, to block IO until later */
        local->stop = 1;
@@ -913,7 +913,7 @@ static int das16cs_pcmcia_suspend(struct pcmcia_device *link)
 
 static int das16cs_pcmcia_resume(struct pcmcia_device *link)
 {
-       local_info_t *local = link->priv;
+       struct local_info_t *local = link->priv;
 
        local->stop = 0;
        return 0;