mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
wiphy: Use an inline function in favor of a macro
This commit is contained in:
parent
a8f3098115
commit
778dacd262
@ -72,7 +72,10 @@ enum ie_rsn_akm_suite wiphy_select_akm(struct wiphy *wiphy,
|
||||
bool fils_capable_hint);
|
||||
|
||||
struct wiphy *wiphy_find(int wiphy_id);
|
||||
#define wiphy_find_by_wdev(w) wiphy_find(w >> 32)
|
||||
static inline struct wiphy *wiphy_find_by_wdev(uint64_t w)
|
||||
{
|
||||
return wiphy_find(w >> 32);
|
||||
}
|
||||
|
||||
bool wiphy_is_blacklisted(const struct wiphy *wiphy);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user