ar5523: use container_of
authorFlorian Westphal <fw@strlen.de>
Tue, 10 Mar 2015 14:25:39 +0000 (15:25 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 13 Mar 2015 14:07:00 +0000 (16:07 +0200)
commit6faf22d9cabeec6f8f623d58a2e88ca9edf4c946
tree04a0f5013d70b84ae2572a4e0238facab4742240
parentdd2951124838843809f75117d17c32d053ee3262
ar5523: use container_of

If we want to shrink skb->cb then we'd have to see about
reducing struct ieee80211_tx_info, which gets embedded inside
skb->cb[].

It provides a scratch space to be used by wireless drivers.
ar5523 uses the maximum space available today (40 bytes), but it seems
we don't need this -- data->skb pointer seems to always point back to the
skb whose cb buffer the data structure resides, iow, given a pointer to the
embedded control buffer we can infer the skb address.

Tested-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ar5523/ar5523.c
drivers/net/wireless/ath/ar5523/ar5523.h