diff options
author | Roland Vossen <rvossen@broadcom.com> | 2011-08-08 09:58:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-23 16:00:08 -0400 |
commit | d89a4c80601db2e565b89b1f13fdbd9a987324dd (patch) | |
tree | d856cc7eeaec0840fb039527504ce735f0d09509 /drivers/staging/brcm80211/brcmsmac/phy/phy_int.h | |
parent | 28e3edfedf86fbc1274d666b6445fb3098f337a7 (diff) |
staging: brcm80211: removed void * from softmac phy
Code cleanup. Replacing void * by other pointer types improves code
readability and enforces stronger type checking.
Reported-by: Julian Calaby <julian.calaby@gmail.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/brcmsmac/phy/phy_int.h')
-rw-r--r-- | drivers/staging/brcm80211/brcmsmac/phy/phy_int.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/brcm80211/brcmsmac/phy/phy_int.h b/drivers/staging/brcm80211/brcmsmac/phy/phy_int.h index 25ea00342f5..bcc6d8312f3 100644 --- a/drivers/staging/brcm80211/brcmsmac/phy/phy_int.h +++ b/drivers/staging/brcm80211/brcmsmac/phy/phy_int.h | |||
@@ -41,6 +41,8 @@ extern u32 phyhal_msg_level; | |||
41 | 41 | ||
42 | #define LCNXN_BASEREV 16 | 42 | #define LCNXN_BASEREV 16 |
43 | 43 | ||
44 | struct phy_shim_info; | ||
45 | |||
44 | struct brcms_phy_srom_fem { | 46 | struct brcms_phy_srom_fem { |
45 | /* TSSI positive slope, 1: positive, 0: negative */ | 47 | /* TSSI positive slope, 1: positive, 0: negative */ |
46 | u8 tssipos; | 48 | u8 tssipos; |
@@ -546,7 +548,7 @@ struct shared_phy { | |||
546 | struct brcms_phy *phy_head; | 548 | struct brcms_phy *phy_head; |
547 | uint unit; | 549 | uint unit; |
548 | struct si_pub *sih; | 550 | struct si_pub *sih; |
549 | void *physhim; | 551 | struct phy_shim_info *physhim; |
550 | uint corerev; | 552 | uint corerev; |
551 | u32 machwcap; | 553 | u32 machwcap; |
552 | bool up; | 554 | bool up; |
@@ -611,7 +613,6 @@ struct brcms_phy { | |||
611 | struct brcms_phy_pub pubpi_ro; | 613 | struct brcms_phy_pub pubpi_ro; |
612 | struct shared_phy *sh; | 614 | struct shared_phy *sh; |
613 | struct phy_func_ptr pi_fptr; | 615 | struct phy_func_ptr pi_fptr; |
614 | void *pi_ptr; | ||
615 | 616 | ||
616 | union { | 617 | union { |
617 | struct brcms_phy_lcnphy *pi_lcnphy; | 618 | struct brcms_phy_lcnphy *pi_lcnphy; |