Commit 4dadfb97 authored by Juliana Rodrigues's avatar Juliana Rodrigues Committed by Greg Kroah-Hartman

staging: rtl8712: hal_init.c: fix comment block code style

This patch fixes several warnings caused by
malformed comments on hal_init.c and found by
checkpatch.pl.
Signed-off-by: default avatarJuliana Rodrigues <juliana.orod@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b59958ee
...@@ -297,7 +297,8 @@ static u8 rtl8712_dl_fw(struct _adapter *padapter) ...@@ -297,7 +297,8 @@ static u8 rtl8712_dl_fw(struct _adapter *padapter)
tmp8 = r8712_read8(padapter, 0x1025000A); tmp8 = r8712_read8(padapter, 0x1025000A);
if (tmp8 & BIT(4)) /* When boot from EEPROM, if (tmp8 & BIT(4)) /* When boot from EEPROM,
& FW need more time to read EEPROM */ * & FW need more time to read EEPROM
*/
i = 60; i = 60;
else /* boot from EFUSE */ else /* boot from EFUSE */
i = 30; i = 30;
...@@ -332,7 +333,8 @@ uint rtl8712_hal_init(struct _adapter *padapter) ...@@ -332,7 +333,8 @@ uint rtl8712_hal_init(struct _adapter *padapter)
r8712_read32(padapter, RCR)); r8712_read32(padapter, RCR));
val32 = r8712_read32(padapter, RCR); val32 = r8712_read32(padapter, RCR);
r8712_write32(padapter, RCR, (val32 | BIT(26))); /* Enable RX TCP r8712_write32(padapter, RCR, (val32 | BIT(26))); /* Enable RX TCP
Checksum offload */ * Checksum offload
*/
netdev_info(padapter->pnetdev, "2 RCR=0x%x\n", netdev_info(padapter->pnetdev, "2 RCR=0x%x\n",
r8712_read32(padapter, RCR)); r8712_read32(padapter, RCR));
val32 = r8712_read32(padapter, RCR); val32 = r8712_read32(padapter, RCR);
...@@ -346,7 +348,8 @@ uint rtl8712_hal_init(struct _adapter *padapter) ...@@ -346,7 +348,8 @@ uint rtl8712_hal_init(struct _adapter *padapter)
r8712_write8(padapter, 0x102500BD, r8712_read8(padapter, 0x102500BD) | r8712_write8(padapter, 0x102500BD, r8712_read8(padapter, 0x102500BD) |
BIT(7)); /* enable usb rx aggregation */ BIT(7)); /* enable usb rx aggregation */
r8712_write8(padapter, 0x102500D9, 1); /* TH=1 => means that invalidate r8712_write8(padapter, 0x102500D9, 1); /* TH=1 => means that invalidate
* usb rx aggregation */ * usb rx aggregation
*/
r8712_write8(padapter, 0x1025FE5B, 0x04); /* 1.7ms/4 */ r8712_write8(padapter, 0x1025FE5B, 0x04); /* 1.7ms/4 */
/* Fix the RX FIFO issue(USB error) */ /* Fix the RX FIFO issue(USB error) */
r8712_write8(padapter, 0x1025fe5C, r8712_read8(padapter, 0x1025fe5C) r8712_write8(padapter, 0x1025fe5C, r8712_read8(padapter, 0x1025fe5C)
...@@ -367,7 +370,8 @@ uint rtl8712_hal_deinit(struct _adapter *padapter) ...@@ -367,7 +370,8 @@ uint rtl8712_hal_deinit(struct _adapter *padapter)
r8712_write8(padapter, SYS_FUNC_EN + 1, 0x70); r8712_write8(padapter, SYS_FUNC_EN + 1, 0x70);
r8712_write8(padapter, PMC_FSM, 0x06); /* Enable Loader Data Keep */ r8712_write8(padapter, PMC_FSM, 0x06); /* Enable Loader Data Keep */
r8712_write8(padapter, SYS_ISO_CTRL, 0xF9); /* Isolation signals from r8712_write8(padapter, SYS_ISO_CTRL, 0xF9); /* Isolation signals from
* CORE, PLL */ * CORE, PLL
*/
r8712_write8(padapter, SYS_ISO_CTRL + 1, 0xe8); /* Enable EFUSE 1.2V */ r8712_write8(padapter, SYS_ISO_CTRL + 1, 0xe8); /* Enable EFUSE 1.2V */
r8712_write8(padapter, AFE_PLL_CTRL, 0x00); /* Disable AFE PLL. */ r8712_write8(padapter, AFE_PLL_CTRL, 0x00); /* Disable AFE PLL. */
r8712_write8(padapter, LDOA15_CTRL, 0x54); /* Disable A15V */ r8712_write8(padapter, LDOA15_CTRL, 0x54); /* Disable A15V */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment