summaryrefslogtreecommitdiff
path: root/net/mac802154/rx.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/rx.c
parentd98be45b3657fc233f5a098279a4e42ab6f0fa4f (diff)
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/rx.c')
-rw-r--r--net/mac802154/rx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c
index dc01817a92c5..1b5e8e332b9b 100644
--- a/net/mac802154/rx.c
+++ b/net/mac802154/rx.c
@@ -49,7 +49,7 @@ struct rx_work {
static void
mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi)
{
- struct ieee802154_local *local = mac802154_to_priv(hw);
+ struct ieee802154_local *local = hw_to_local(hw);
mac_cb(skb)->lqi = lqi;
skb->protocol = htons(ETH_P_IEEE802154);
@@ -90,7 +90,7 @@ static void mac802154_rx_worker(struct work_struct *work)
void
ieee802154_rx_irqsafe(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi)
{
- struct ieee802154_local *local = mac802154_to_priv(hw);
+ struct ieee802154_local *local = hw_to_local(hw);
struct rx_work *work;
if (!skb)