projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90e3012
)
cfg80211: add wrapper function to get wiphy from priv pointer
author
David Kilroy
<
[email protected]
>
Thu, 18 Jun 2009 22:21:13 +0000
(23:21 +0100)
committer
John W. Linville
<
[email protected]
>
Fri, 10 Jul 2009 19:01:42 +0000
(15:01 -0400)
Signed-off-by: David Kilroy <
[email protected]
>
Acked-by: Johannes Berg <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
include/net/cfg80211.h
patch
|
blob
|
history
diff --git
a/include/net/cfg80211.h
b/include/net/cfg80211.h
index 90f9bfa3bfc2f7219cd91cbcc02d9eda00b792f2..dba7874d19637c5531e56c176dfb892d15375281 100644
(file)
--- a/
include/net/cfg80211.h
+++ b/
include/net/cfg80211.h
@@
-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
*