[PATCH 0/4 linux-next] drivers/net: use container_of where possible

From: Fabian Frederick
Date: Sat Sep 13 2014 - 16:38:55 EST


Small patchset using container_of instead of casting on first structure member address.

Fabian Frederick (4):
net: fec: use container_of to resolve bufdesc_ex from bufdesc
bna: use container_of to resolve bufdesc_ex from bufdesc
brcm80211: use container_of to resolve brcms_phy from brcms_phy_pub
brcm80211: use container_of to resolve dma_info from dma_pub

drivers/net/ethernet/brocade/bna/bna_enet.c | 9 +-
drivers/net/ethernet/brocade/bna/bna_tx_rx.c | 4 +-
drivers/net/ethernet/freescale/fec_main.c | 4 +-
drivers/net/wireless/brcm80211/brcmsmac/dma.c | 38 +++----
.../net/wireless/brcm80211/brcmsmac/phy/phy_cmn.c | 122 ++++++++++-----------
.../net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c | 6 +-
.../net/wireless/brcm80211/brcmsmac/phy/phy_n.c | 8 +-
7 files changed, 97 insertions(+), 94 deletions(-)

--
1.8.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/