123456789101112131415161718192021222324252627282930313233343536373839 |
- From 1fd3ae124d5e675f57cf7e3c601fb8f7712e0329 Mon Sep 17 00:00:00 2001
- From: Ian Molton <[email protected]>
- Date: Mon, 13 Nov 2017 21:35:38 +0100
- Subject: [PATCH] brcmfmac: Fix parameter order in brcmf_sdiod_f0_writeb()
- All the other IO functions are the other way round in this
- driver. Make this one match.
- Signed-off-by: Ian Molton <[email protected]>
- Signed-off-by: Arend van Spriel <[email protected]>
- Signed-off-by: Kalle Valo <[email protected]>
- ---
- drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
- --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
- +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c
- @@ -230,8 +230,8 @@ void brcmf_sdiod_change_state(struct brc
- sdiodev->state = state;
- }
-
- -static inline int brcmf_sdiod_f0_writeb(struct sdio_func *func,
- - uint regaddr, u8 byte)
- +static inline int brcmf_sdiod_f0_writeb(struct sdio_func *func, u8 byte,
- + uint regaddr)
- {
- int err_ret;
-
- @@ -269,8 +269,8 @@ static int brcmf_sdiod_request_data(stru
- if (fn)
- sdio_writeb(func, *(u8 *)data, addr, &ret);
- else
- - ret = brcmf_sdiod_f0_writeb(func, addr,
- - *(u8 *)data);
- + ret = brcmf_sdiod_f0_writeb(func, *(u8 *)data,
- + addr);
- } else {
- if (fn)
- *(u8 *)data = sdio_readb(func, addr, &ret);
|