brcmfmac: Split brcmf_sdiod_regrw_helper() up.
authorIan Molton <ian@mnementh.co.uk>
Mon, 13 Nov 2017 20:35:40 +0000 (21:35 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Dec 2017 13:10:49 +0000 (15:10 +0200)
commit0fcc9fe0048422d66bb906eaa73cc75e11ff7345
tree1babd646c51df3504edf78a2be3c94bcbd7e9e20
parent1e6f676f43aa4270ebc5cff8e32a55f72362e042
brcmfmac: Split brcmf_sdiod_regrw_helper() up.

This large function is concealing a LOT of obscure logic about
how the hardware functions. Time to split it up.

This first patch splits the function into two pieces - read and write,
doing away with the rw flag in the process.

Signed-off-by: Ian Molton <ian@mnementh.co.uk>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c