mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 00:51:35 +00:00
wpan-phy: add a helper to put the wpan_phy device
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
This commit is contained in:
parent
6a2a2d6bf8
commit
69d9ab96f9
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue