mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-05-02 18:15:03 -04:00
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>
This commit is contained in:
committed by
Marcel Holtmann
parent
fe58d016e3
commit
a5dd1d72d8
@@ -29,6 +29,11 @@
|
||||
#define WPAN_NUM_CHANNELS 27
|
||||
#define WPAN_NUM_PAGES 32
|
||||
|
||||
struct wpan_phy;
|
||||
|
||||
struct cfg802154_ops {
|
||||
};
|
||||
|
||||
struct wpan_phy {
|
||||
struct mutex pib_lock;
|
||||
|
||||
@@ -62,7 +67,8 @@ struct wpan_phy {
|
||||
|
||||
#define to_phy(_dev) container_of(_dev, struct wpan_phy, dev)
|
||||
|
||||
struct wpan_phy *wpan_phy_alloc(size_t priv_size);
|
||||
struct wpan_phy *
|
||||
wpan_phy_alloc(const struct cfg802154_ops *ops, size_t priv_size);
|
||||
static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev)
|
||||
{
|
||||
phy->dev.parent = dev;
|
||||
|
||||
Reference in New Issue
Block a user