1 From 1fd3ae124d5e675f57cf7e3c601fb8f7712e0329 Mon Sep 17 00:00:00 2001
2 From: Ian Molton <ian@mnementh.co.uk>
3 Date: Mon, 13 Nov 2017 21:35:38 +0100
4 Subject: [PATCH] brcmfmac: Fix parameter order in brcmf_sdiod_f0_writeb()
6 All the other IO functions are the other way round in this
7 driver. Make this one match.
9 Signed-off-by: Ian Molton <ian@mnementh.co.uk>
10 Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
11 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
13 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 8 ++++----
14 1 file changed, 4 insertions(+), 4 deletions(-)
16 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
17 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
18 @@ -230,8 +230,8 @@ void brcmf_sdiod_change_state(struct brc
19 sdiodev->state = state;
22 -static inline int brcmf_sdiod_f0_writeb(struct sdio_func *func,
23 - uint regaddr, u8 byte)
24 +static inline int brcmf_sdiod_f0_writeb(struct sdio_func *func, u8 byte,
29 @@ -269,8 +269,8 @@ static int brcmf_sdiod_request_data(stru
31 sdio_writeb(func, *(u8 *)data, addr, &ret);
33 - ret = brcmf_sdiod_f0_writeb(func, addr,
35 + ret = brcmf_sdiod_f0_writeb(func, *(u8 *)data,
39 *(u8 *)data = sdio_readb(func, addr, &ret);