]> asedeno.scripts.mit.edu Git - linux.git/commit
brcmfmac: rework bphy_err() to take struct brcmf_pub argument
authorRafał Miłecki <rafal@milecki.pl>
Fri, 15 Feb 2019 14:45:54 +0000 (15:45 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 19 Feb 2019 15:07:13 +0000 (17:07 +0200)
commit16e646768396339b3d354985b99bcd3f1f195a7d
treeb785f8adb803a00567878a41ccc7428cfb138cf7
parent30519cbe339a45bd11a57ca8ece07f4f6a1cda2e
brcmfmac: rework bphy_err() to take struct brcmf_pub argument

This macro will be used in more places not just the cfg80211.c. It makes
sense to pass some common struct to it as "struct wiphy" is mostly
referenced in cfg80211 code only.

A very common one (used above the bus abstraction layer) is struct
brcmf_pub. Many functions already keep reference to it which will make
using bphy_err() simpler. It should also allow extending that macro's
logic if it's ever needed.

This improves code recently added in the commit 3ef005b82e2a ("brcmfmac:
add bphy_err() and use it in the cfg80211.c").

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h