diff options
Diffstat (limited to 'include/net/wpan-phy.h')
-rw-r--r-- | include/net/wpan-phy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/wpan-phy.h b/include/net/wpan-phy.h index f63537c17363..a65e98509fbc 100644 --- a/include/net/wpan-phy.h +++ b/include/net/wpan-phy.h | |||
@@ -44,6 +44,8 @@ struct wpan_phy { | |||
44 | char priv[0] __attribute__((__aligned__(NETDEV_ALIGN))); | 44 | char priv[0] __attribute__((__aligned__(NETDEV_ALIGN))); |
45 | }; | 45 | }; |
46 | 46 | ||
47 | #define to_phy(_dev) container_of(_dev, struct wpan_phy, dev) | ||
48 | |||
47 | struct wpan_phy *wpan_phy_alloc(size_t priv_size); | 49 | struct wpan_phy *wpan_phy_alloc(size_t priv_size); |
48 | static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev) | 50 | static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev) |
49 | { | 51 | { |