Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa97dc1a authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman
Browse files

staging: wlan-ng: avoid new typedef: p80211enum_t



This patch fixes the following checkpatch.pl warning in p80211types.h:
WARNING: do not add new typedefs

It applies for typedef p80211enum_t.

Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c4917864
Loading
Loading
Loading
Loading
+22 −22
Original line number Original line Diff line number Diff line
@@ -205,10 +205,10 @@ struct p80211enumpair {
	char *name;
	char *name;
};
};


typedef struct p80211enum {
struct p80211enum {
	int nitems;
	int nitems;
	struct p80211enumpair *list;
	struct p80211enumpair *list;
} p80211enum_t;
};


/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* The following structure types are used to store data items in */
/* The following structure types are used to store data items in */
@@ -351,25 +351,25 @@ typedef u32(*p80211_valid_t) (struct catlistitem *, u32 did, u8 *itembuf);
/*  The following are the external declarations */
/*  The following are the external declarations */
/*  for all enumerations  */
/*  for all enumerations  */


extern p80211enum_t MKENUMNAME(truth);
extern struct p80211enum MKENUMNAME(truth);
extern p80211enum_t MKENUMNAME(ifstate);
extern struct p80211enum MKENUMNAME(ifstate);
extern p80211enum_t MKENUMNAME(powermgmt);
extern struct p80211enum MKENUMNAME(powermgmt);
extern p80211enum_t MKENUMNAME(bsstype);
extern struct p80211enum MKENUMNAME(bsstype);
extern p80211enum_t MKENUMNAME(authalg);
extern struct p80211enum MKENUMNAME(authalg);
extern p80211enum_t MKENUMNAME(phytype);
extern struct p80211enum MKENUMNAME(phytype);
extern p80211enum_t MKENUMNAME(temptype);
extern struct p80211enum MKENUMNAME(temptype);
extern p80211enum_t MKENUMNAME(regdomain);
extern struct p80211enum MKENUMNAME(regdomain);
extern p80211enum_t MKENUMNAME(ccamode);
extern struct p80211enum MKENUMNAME(ccamode);
extern p80211enum_t MKENUMNAME(diversity);
extern struct p80211enum MKENUMNAME(diversity);
extern p80211enum_t MKENUMNAME(scantype);
extern struct p80211enum MKENUMNAME(scantype);
extern p80211enum_t MKENUMNAME(resultcode);
extern struct p80211enum MKENUMNAME(resultcode);
extern p80211enum_t MKENUMNAME(reason);
extern struct p80211enum MKENUMNAME(reason);
extern p80211enum_t MKENUMNAME(status);
extern struct p80211enum MKENUMNAME(status);
extern p80211enum_t MKENUMNAME(msgcode);
extern struct p80211enum MKENUMNAME(msgcode);
extern p80211enum_t MKENUMNAME(msgitem_status);
extern struct p80211enum MKENUMNAME(msgitem_status);


extern p80211enum_t MKENUMNAME(lnxroam_reason);
extern struct p80211enum MKENUMNAME(lnxroam_reason);


extern p80211enum_t MKENUMNAME(p2preamble);
extern struct p80211enum MKENUMNAME(p2preamble);


#endif /* _P80211TYPES_H */
#endif /* _P80211TYPES_H */