diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-01 23:18:35 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-01 23:51:06 -0400 |
commit | a5dd1d72d868ec9c8f44d60ca29900b6a38321b4 (patch) | |
tree | 9710a262a7ac980362ad1459115447b75905a4a6 /include/net/cfg802154.h | |
parent | fe58d016e396fc685364b5a1743faf83c1fb8103 (diff) |
cfg802154: introduce cfg802154_registered_device
This patch introduce the cfg802154_registered_device struct. Like
cfg80211_registered_device in wireless this should contain similar
functionality for cfg802154. This patch should not change any behaviour.
We just adds cfg802154_registered_device as container for wpan_phy struct.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/cfg802154.h')
-rw-r--r-- | include/net/cfg802154.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/net/cfg802154.h b/include/net/cfg802154.h index 440b9bece9c6..12de66bda9a5 100644 --- a/include/net/cfg802154.h +++ b/include/net/cfg802154.h | |||
@@ -29,6 +29,11 @@ | |||
29 | #define WPAN_NUM_CHANNELS 27 | 29 | #define WPAN_NUM_CHANNELS 27 |
30 | #define WPAN_NUM_PAGES 32 | 30 | #define WPAN_NUM_PAGES 32 |
31 | 31 | ||
32 | struct wpan_phy; | ||
33 | |||
34 | struct cfg802154_ops { | ||
35 | }; | ||
36 | |||
32 | struct wpan_phy { | 37 | struct wpan_phy { |
33 | struct mutex pib_lock; | 38 | struct mutex pib_lock; |
34 | 39 | ||
@@ -62,7 +67,8 @@ struct wpan_phy { | |||
62 | 67 | ||
63 | #define to_phy(_dev) container_of(_dev, struct wpan_phy, dev) | 68 | #define to_phy(_dev) container_of(_dev, struct wpan_phy, dev) |
64 | 69 | ||
65 | struct wpan_phy *wpan_phy_alloc(size_t priv_size); | 70 | struct wpan_phy * |
71 | wpan_phy_alloc(const struct cfg802154_ops *ops, size_t priv_size); | ||
66 | static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev) | 72 | static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev) |
67 | { | 73 | { |
68 | phy->dev.parent = dev; | 74 | phy->dev.parent = dev; |