diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-09-15 08:57:04 -0400 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-11-06 06:12:24 -0500 |
commit | 1c889f4db6b2f8f8429e62011ba622642faba019 (patch) | |
tree | 995e43f46f37925556b74b324e59d7363f9393be /include/net/wpan-phy.h | |
parent | 69d9ab96f983720b7794e91437bd9c5f83bae9f7 (diff) |
wpan-phy: add wpan-phy iteration functions
Add API to iterate over the wpan-phy instances.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
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 5e803a0e4e72..3367dd95cf85 100644 --- a/include/net/wpan-phy.h +++ b/include/net/wpan-phy.h | |||
@@ -48,6 +48,8 @@ struct wpan_phy *wpan_phy_alloc(size_t priv_size); | |||
48 | int wpan_phy_register(struct device *parent, struct wpan_phy *phy); | 48 | int wpan_phy_register(struct device *parent, struct wpan_phy *phy); |
49 | void wpan_phy_unregister(struct wpan_phy *phy); | 49 | void wpan_phy_unregister(struct wpan_phy *phy); |
50 | void wpan_phy_free(struct wpan_phy *phy); | 50 | void wpan_phy_free(struct wpan_phy *phy); |
51 | /* Same semantics as for class_for_each_device */ | ||
52 | int wpan_phy_for_each(int (*fn)(struct wpan_phy *phy, void *data), void *data); | ||
51 | 53 | ||
52 | static inline void *wpan_phy_priv(struct wpan_phy *phy) | 54 | static inline void *wpan_phy_priv(struct wpan_phy *phy) |
53 | { | 55 | { |