brcmsmac: use container_of instead of cast
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 30 Jun 2012 13:16:07 +0000 (15:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Jul 2012 16:16:48 +0000 (12:16 -0400)
commited1dd81464f53314b5d93924adb84de9cd5838a5
treebb133c68b5a16f4def22f8c2f8e7bfee7a62130b
parent72d4d66205a7e033fa56755ff3f81ab17d952df9
brcmsmac: use container_of instead of cast

Now "struct si_pub pub" does not have to be the first member in struct
si_info any more, if it is the resulting code after compilation should
be the same.

Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/aiutils.c