提交 1fd3ae12 编写于 作者: I Ian Molton 提交者: Kalle Valo

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: NIan Molton <ian@mnementh.co.uk>
Signed-off-by: NArend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 80b0ebd4
...@@ -230,8 +230,8 @@ void brcmf_sdiod_change_state(struct brcmf_sdio_dev *sdiodev, ...@@ -230,8 +230,8 @@ void brcmf_sdiod_change_state(struct brcmf_sdio_dev *sdiodev,
sdiodev->state = state; sdiodev->state = state;
} }
static inline int brcmf_sdiod_f0_writeb(struct sdio_func *func, static inline int brcmf_sdiod_f0_writeb(struct sdio_func *func, u8 byte,
uint regaddr, u8 byte) uint regaddr)
{ {
int err_ret; int err_ret;
...@@ -269,8 +269,8 @@ static int brcmf_sdiod_request_data(struct brcmf_sdio_dev *sdiodev, u8 fn, ...@@ -269,8 +269,8 @@ static int brcmf_sdiod_request_data(struct brcmf_sdio_dev *sdiodev, u8 fn,
if (fn) if (fn)
sdio_writeb(func, *(u8 *)data, addr, &ret); sdio_writeb(func, *(u8 *)data, addr, &ret);
else else
ret = brcmf_sdiod_f0_writeb(func, addr, ret = brcmf_sdiod_f0_writeb(func, *(u8 *)data,
*(u8 *)data); addr);
} else { } else {
if (fn) if (fn)
*(u8 *)data = sdio_readb(func, addr, &ret); *(u8 *)data = sdio_readb(func, addr, &ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册