brcmfmac: modify __brcmf_err() to take bus as a parameter
authorRafał Miłecki <rafal@milecki.pl>
Wed, 6 Feb 2019 11:28:15 +0000 (12:28 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 8 Feb 2019 15:22:47 +0000 (17:22 +0200)
commit5cc898fbcb352b764f8d51c16e10e2eb0056173d
tree483fc39c4f465f8cfaadb5618b69803d4b19628b
parent6ecde4936bf95f7df282e303abd6956be2ab62ef
brcmfmac: modify __brcmf_err() to take bus as a parameter

So far __brcmf_err() was using pr_err() which didn't allow identifying
device that was affected by an error. It's crucial for systems with more
than 1 device supported by brcmfmac (a common case for home routers).

This change allows passing struct brcmf_bus to the __brcmf_err(). That
struct has been agreed to be the most common one. It allows accessing
struct device easily & using dev_err() printing helper.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c