mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
staging: rtl8723bs: fix spacing around operators
Fix coding style issues by adding missing spaces around operators. Signed-off-by: Luka Gejak <lukagejak5@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://patch.msgid.link/20260130185658.207785-4-lukagejak5@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
01e28097a0
commit
908c03bf95
|
|
@ -17,8 +17,8 @@ static void _FWDownloadEnable(struct adapter *padapter, bool enable)
|
|||
|
||||
if (enable) {
|
||||
/* 8051 enable */
|
||||
tmp = rtw_read8(padapter, REG_SYS_FUNC_EN+1);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN+1, tmp|0x04);
|
||||
tmp = rtw_read8(padapter, REG_SYS_FUNC_EN + 1);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN + 1, tmp | 0x04);
|
||||
|
||||
tmp = rtw_read8(padapter, REG_MCUFWDL);
|
||||
rtw_write8(padapter, REG_MCUFWDL, tmp|0x01);
|
||||
|
|
@ -158,23 +158,23 @@ void _8051Reset8723(struct adapter *padapter)
|
|||
/* Reset 8051(WLMCU) IO wrapper */
|
||||
/* 0x1c[8] = 0 */
|
||||
/* Suggested by Isaac@SD1 and Gimmy@SD1, coding by Lucas@20130624 */
|
||||
io_rst = rtw_read8(padapter, REG_RSV_CTRL+1);
|
||||
io_rst = rtw_read8(padapter, REG_RSV_CTRL + 1);
|
||||
io_rst &= ~BIT(0);
|
||||
rtw_write8(padapter, REG_RSV_CTRL+1, io_rst);
|
||||
rtw_write8(padapter, REG_RSV_CTRL + 1, io_rst);
|
||||
|
||||
cpu_rst = rtw_read8(padapter, REG_SYS_FUNC_EN+1);
|
||||
cpu_rst = rtw_read8(padapter, REG_SYS_FUNC_EN + 1);
|
||||
cpu_rst &= ~BIT(2);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN+1, cpu_rst);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN + 1, cpu_rst);
|
||||
|
||||
/* Enable 8051 IO wrapper */
|
||||
/* 0x1c[8] = 1 */
|
||||
io_rst = rtw_read8(padapter, REG_RSV_CTRL+1);
|
||||
io_rst = rtw_read8(padapter, REG_RSV_CTRL + 1);
|
||||
io_rst |= BIT(0);
|
||||
rtw_write8(padapter, REG_RSV_CTRL+1, io_rst);
|
||||
rtw_write8(padapter, REG_RSV_CTRL + 1, io_rst);
|
||||
|
||||
cpu_rst = rtw_read8(padapter, REG_SYS_FUNC_EN+1);
|
||||
cpu_rst = rtw_read8(padapter, REG_SYS_FUNC_EN + 1);
|
||||
cpu_rst |= BIT(2);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN+1, cpu_rst);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN + 1, cpu_rst);
|
||||
}
|
||||
|
||||
u8 g_fwdl_chksum_fail;
|
||||
|
|
@ -268,19 +268,19 @@ void rtl8723b_FirmwareSelfReset(struct adapter *padapter)
|
|||
/* 0x1cf = 0x20. Inform 8051 to reset. 2009.12.25. tynli_test */
|
||||
rtw_write8(padapter, REG_HMETFR+3, 0x20);
|
||||
|
||||
val = rtw_read8(padapter, REG_SYS_FUNC_EN+1);
|
||||
val = rtw_read8(padapter, REG_SYS_FUNC_EN + 1);
|
||||
while (val & BIT2) {
|
||||
Delay--;
|
||||
if (Delay == 0)
|
||||
break;
|
||||
udelay(50);
|
||||
val = rtw_read8(padapter, REG_SYS_FUNC_EN+1);
|
||||
val = rtw_read8(padapter, REG_SYS_FUNC_EN + 1);
|
||||
}
|
||||
|
||||
if (Delay == 0) {
|
||||
/* force firmware reset */
|
||||
val = rtw_read8(padapter, REG_SYS_FUNC_EN+1);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN+1, val&(~BIT2));
|
||||
val = rtw_read8(padapter, REG_SYS_FUNC_EN + 1);
|
||||
rtw_write8(padapter, REG_SYS_FUNC_EN + 1, val & (~BIT2));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -875,7 +875,7 @@ static void CardDisableRTL8723BSdio(struct adapter *padapter)
|
|||
rtw_write8(padapter, REG_RSV_CTRL + 1, val);
|
||||
val = rtw_read8(padapter, REG_RSV_CTRL + 1);
|
||||
val |= BIT(0);
|
||||
rtw_write8(padapter, REG_RSV_CTRL+1, val);
|
||||
rtw_write8(padapter, REG_RSV_CTRL + 1, val);
|
||||
|
||||
/* ==== Reset digital sequence end ====== */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user