提交 69d9ab96 编写于 作者: D Dmitry Eremin-Solenikov

wpan-phy: add a helper to put the wpan_phy device

Signed-off-by: NDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
上级 6a2a2d6b
......@@ -56,6 +56,12 @@ static inline void *wpan_phy_priv(struct wpan_phy *phy)
}
struct wpan_phy *wpan_phy_find(const char *str);
static inline void wpan_phy_put(struct wpan_phy *phy)
{
put_device(&phy->dev);
}
static inline const char *wpan_phy_name(struct wpan_phy *phy)
{
return dev_name(&phy->dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册