]> Pileus Git - ~andy/linux/blobdiff - include/net/wpan-phy.h
ieee802154: add an mlme_ops call to retrieve PHY object
[~andy/linux] / include / net / wpan-phy.h
index f63537c17363df5cd07ece7bc3b46a1dc9f1a799..a65e98509fbcebcd3ae7e7abacc79684705dcc44 100644 (file)
@@ -44,6 +44,8 @@ struct wpan_phy {
        char priv[0] __attribute__((__aligned__(NETDEV_ALIGN)));
 };
 
+#define to_phy(_dev)   container_of(_dev, struct wpan_phy, dev)
+
 struct wpan_phy *wpan_phy_alloc(size_t priv_size);
 static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev)
 {