brcm80211: use container_of to resolve dma_info from dma_pub
authorFabian Frederick <fabf@skynet.be>
Sat, 13 Sep 2014 20:38:29 +0000 (22:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Sep 2014 19:00:53 +0000 (15:00 -0400)
commita38a9ef1c0647f9add53ab4b43660d3fbefaa36e
tree3eb4bfb0928fcdbec25368d8a61e74a2e20f6527
parentd68e9f5d8549f37332a7ec810d2864b793219845
brcm80211: use container_of to resolve dma_info from dma_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/dma.c