OSDN Git Service

brcm80211: use container_of to resolve brcms_phy from brcms_phy_pub
authorFabian Frederick <fabf@skynet.be>
Sat, 13 Sep 2014 20:38:28 +0000 (22:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Sep 2014 19:00:53 +0000 (15:00 -0400)
commitd68e9f5d8549f37332a7ec810d2864b793219845
tree77701924323279cfe637cd1f4f81432f3a14bed9
parent5eef40e5687da4ad0123e231e4fe952a12655f0b
brcm80211: use container_of to resolve brcms_phy from brcms_phy_pub

Use container_of instead of casting first structure member.

Compiled but untested.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_n.c