616a82119f91dd422b873bf82c6fbb55ad1d22f9
[openwrt/staging/linusw.git] /
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()
5
6 All the other IO functions are the other way round in this
7 driver. Make this one match.
8
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>
12 ---
13 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 8 ++++----
14 1 file changed, 4 insertions(+), 4 deletions(-)
15
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;
20 }
21
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,
25 + uint regaddr)
26 {
27 int err_ret;
28
29 @@ -269,8 +269,8 @@ static int brcmf_sdiod_request_data(stru
30 if (fn)
31 sdio_writeb(func, *(u8 *)data, addr, &ret);
32 else
33 - ret = brcmf_sdiod_f0_writeb(func, addr,
34 - *(u8 *)data);
35 + ret = brcmf_sdiod_f0_writeb(func, *(u8 *)data,
36 + addr);
37 } else {
38 if (fn)
39 *(u8 *)data = sdio_readb(func, addr, &ret);