Skip to content

Commit

Permalink
staging: brcm80211: replaced typedef struct wl_info_t by struct wl_info.
Browse files Browse the repository at this point in the history
Part of the code cleanup effort. CodingStyle doc advises to restrict the usage
of typedefs. Also moved several function declarations from .c to .h file
because this typedef replace operation induced checkpatch.pl warnings.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed Dec 1, 2010
1 parent 01d1144 commit 2cb22a7
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 73 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/brcm80211/brcmfmac/wl_iw.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@
#include <dhd.h>
#include <dhdioctl.h>

typedef void wlc_info_t;
typedef void wl_info_t;
typedef const struct si_pub si_t;
#include <wlioctl.h>

#include <proto/ethernet.h>
#include <dngl_stats.h>
#include <dhd.h>

#define WL_ERROR(x) printf x
#define WL_TRACE(x)
#define WL_ASSOC(x)
Expand Down
3 changes: 3 additions & 0 deletions drivers/staging/brcm80211/include/bcmdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,7 @@ typedef struct {
/* Max. nvram variable table size */
#define MAXSZ_NVRAM_VARS 4096

/* handle forward declaration */
struct wl_info;

#endif /* _bcmdefs_h_ */
Loading

0 comments on commit 2cb22a7

Please sign in to comment.