Skip to content

Commit

Permalink
wpan-phy: add a helper to put the wpan_phy device
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
  • Loading branch information
Dmitry Eremin-Solenikov committed Nov 6, 2009
1 parent 6a2a2d6 commit 69d9ab9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/net/wpan-phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 69d9ab9

Please sign in to comment.