Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158840
b: refs/heads/master
c: f1f7482
h: refs/heads/master
v: v3
  • Loading branch information
David Kilroy authored and John W. Linville committed Jul 10, 2009
1 parent 23ac478 commit 1e6d563
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90e3012e94be0755a516f60f5339a2a08f4a7d0a
refs/heads/master: f1f74825fe01ac77204ca34e3240dec50a8207c2
11 changes: 11 additions & 0 deletions trunk/include/net/cfg80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,17 @@ static inline void *wiphy_priv(struct wiphy *wiphy)
return &wiphy->priv;
}

/**
* priv_to_wiphy - return the wiphy containing the priv
*
* @priv: a pointer previously returned by wiphy_priv
*/
static inline struct wiphy *priv_to_wiphy(void *priv)
{
BUG_ON(!priv);
return container_of(priv, struct wiphy, priv);
}

/**
* set_wiphy_dev - set device pointer for wiphy
*
Expand Down

0 comments on commit 1e6d563

Please sign in to comment.