cfg80211: change wiphy_to_dev function name
Name wiphy_to_rdev is more accurate to describe what the function does, i.e., return a pointer pointing to struct cfg80211_registered_device. Signed-off-by: Zhao, Gang <gamerh2o@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
1b8ec87aa0
commit
f26cbf401b
@@ -90,7 +90,7 @@ struct cfg80211_registered_device {
|
||||
};
|
||||
|
||||
static inline
|
||||
struct cfg80211_registered_device *wiphy_to_dev(struct wiphy *wiphy)
|
||||
struct cfg80211_registered_device *wiphy_to_rdev(struct wiphy *wiphy)
|
||||
{
|
||||
BUG_ON(!wiphy);
|
||||
return container_of(wiphy, struct cfg80211_registered_device, wiphy);
|
||||
|
Reference in New Issue
Block a user