]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf2ec82539032448821f74e2e7fb3510adb2c8af
treebb133c68b5a16f4def22f8c2f8e7bfee7a62130b
parented49c44b1229ee7a754445ec4c52289301727ade
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