]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
orinoco: address checkpatch typedef warning
authorDavid Kilroy <kilroyd@gmail.com>
Thu, 21 Aug 2008 22:27:57 +0000 (23:27 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 Aug 2008 23:28:05 +0000 (19:28 -0400)
Just sprinkle the necessary structs around...

Signed-off-by: David Kilroy <kilroyd@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco.c
drivers/net/wireless/orinoco.h

index b83415daa723ef069d915e6b85e5ae831e3daf74..3d5570d0a2623be4c3cab0d1dda653897e4d3853 100644 (file)
@@ -279,7 +279,8 @@ static int orinoco_bss_data_allocate(struct orinoco_private *priv)
                return 0;
 
        priv->bss_data =
-           kzalloc(ORINOCO_MAX_BSS_COUNT * sizeof(bss_element), GFP_KERNEL);
+           kzalloc(ORINOCO_MAX_BSS_COUNT * sizeof(struct bss_element),
+                   GFP_KERNEL);
        if (!priv->bss_data) {
                printk(KERN_WARNING "Out of memory allocating beacons");
                return -ENOMEM;
@@ -1413,8 +1414,8 @@ static void orinoco_send_wevents(struct work_struct *work)
 static inline void orinoco_clear_scan_results(struct orinoco_private *priv,
                                              unsigned long scan_age)
 {
-       bss_element *bss;
-       bss_element *tmp_bss;
+       struct bss_element *bss;
+       struct bss_element *tmp_bss;
 
        /* Blow away current list of scan results */
        list_for_each_entry_safe(bss, tmp_bss, &priv->bss_list, list) {
@@ -1489,7 +1490,7 @@ static int orinoco_process_scan_results(struct net_device *dev,
        /* Read the entries one by one */
        for (; offset + atom_len <= len; offset += atom_len) {
                int found = 0;
-               bss_element *bss = NULL;
+               struct bss_element *bss = NULL;
 
                /* Get next atom */
                atom = (union hermes_scan_info *) (buf + offset);
@@ -1511,7 +1512,7 @@ static int orinoco_process_scan_results(struct net_device *dev,
                /* Grab a bss off the free list */
                if (!found && !list_empty(&priv->bss_free_list)) {
                        bss = list_entry(priv->bss_free_list.next,
-                                        bss_element, list);
+                                        struct bss_element, list);
                        list_del(priv->bss_free_list.next);
 
                        list_add_tail(&bss->list, &priv->bss_list);
@@ -4547,7 +4548,7 @@ static int orinoco_ioctl_getscan(struct net_device *dev,
                                 char *extra)
 {
        struct orinoco_private *priv = netdev_priv(dev);
-       bss_element *bss;
+       struct bss_element *bss;
        int err = 0;
        unsigned long flags;
        char *current_ev = extra;
index f93752ffb07cbf5bd5c3fa4a4fbf359a6b5e4643..584d8c92db125406b6664dfd096cd0a4e6611fc5 100644 (file)
@@ -36,11 +36,11 @@ typedef enum {
        FIRMWARE_TYPE_SYMBOL
 } fwtype_t;
 
-typedef struct {
+struct bss_element {
        union hermes_scan_info bss;
        unsigned long last_scanned;
        struct list_head list;
-} bss_element;
+};
 
 struct orinoco_private {
        void *card;     /* Pointer to card dependent structure */
@@ -117,7 +117,7 @@ struct orinoco_private {
        /* Scanning support */
        struct list_head bss_list;
        struct list_head bss_free_list;
-       bss_element *bss_data;
+       struct bss_element *bss_data;
 
        int     scan_inprogress;        /* Scan pending... */
        u32     scan_mode;              /* Type of scan done */