summaryrefslogtreecommitdiffstats
path: root/net/mac802154/tx.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-25 17:16:39 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-10-25 21:55:38 +0200
commit60741361c3ca229a1dbb18e05d11e97b7ea75d69 (patch)
tree71194fea29b7c5a5f21344fc5046c9464df55f46 /net/mac802154/tx.c
parentmac802154: rename sdata slaves and slaves_mtx (diff)
downloadlinux-60741361c3ca229a1dbb18e05d11e97b7ea75d69.tar.xz
linux-60741361c3ca229a1dbb18e05d11e97b7ea75d69.zip
mac802154: introduce hw_to_local function
This patch replace the mac802154_to_priv macro with a static inline function named hw_to_local. This brings a similar naming convention like mac80211 stack. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/tx.c')
-rw-r--r--net/mac802154/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c
index b6039c75d175..36844264b20b 100644
--- a/net/mac802154/tx.c
+++ b/net/mac802154/tx.c
@@ -88,7 +88,7 @@ netdev_tx_t mac802154_tx(struct ieee802154_local *local, struct sk_buff *skb,
goto err_tx;
}
- mac802154_monitors_rx(mac802154_to_priv(&local->hw), skb);
+ mac802154_monitors_rx(local, skb);
if (!(local->hw.flags & IEEE802154_HW_OMIT_CKSUM)) {
u16 crc = crc_ccitt(0, skb->data, skb->len);