|
@@ -45,7 +45,11 @@ struct wpan_phy {
|
|
};
|
|
};
|
|
|
|
|
|
struct wpan_phy *wpan_phy_alloc(size_t priv_size);
|
|
struct wpan_phy *wpan_phy_alloc(size_t priv_size);
|
|
-int wpan_phy_register(struct device *parent, struct wpan_phy *phy);
|
|
|
|
|
|
+static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev)
|
|
|
|
+{
|
|
|
|
+ phy->dev.parent = dev;
|
|
|
|
+}
|
|
|
|
+int wpan_phy_register(struct wpan_phy *phy);
|
|
void wpan_phy_unregister(struct wpan_phy *phy);
|
|
void wpan_phy_unregister(struct wpan_phy *phy);
|
|
void wpan_phy_free(struct wpan_phy *phy);
|
|
void wpan_phy_free(struct wpan_phy *phy);
|
|
/* Same semantics as for class_for_each_device */
|
|
/* Same semantics as for class_for_each_device */
|