]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: Improve clarity of MAR usage
authorManjae Cho <manjae.cho@samsung.com>
Wed, 31 Jul 2024 22:51:34 +0000 (07:51 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Aug 2024 09:26:28 +0000 (11:26 +0200)
This patch improves the readability of the code related to the Multicast
Address Register (REG_MAR) in the rtl8723bs driver. It adds comments to
clarify the purpose and offset of the register, making the code more
self-documenting without introducing new macros.

Signed-off-by: Manjae Cho <manjae.cho@samsung.com>
Reviewed-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240731225134.917542-1-manjae.cho@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_halinit.c

index c9cd6578f7f8295933c6e50c2bc23084cfb402fd..535cd439121d43ff9f3f5287e2d59b169d427afe 100644 (file)
@@ -380,8 +380,8 @@ static void _InitWMACSetting(struct adapter *padapter)
        rtw_write32(padapter, REG_RCR, pHalData->ReceiveConfig);
 
        /*  Accept all multicast address */
-       rtw_write32(padapter, REG_MAR, 0xFFFFFFFF);
-       rtw_write32(padapter, REG_MAR + 4, 0xFFFFFFFF);
+       rtw_write32(padapter, REG_MAR, 0xFFFFFFFF);     /* Offset 0x0620-0x0623 */
+       rtw_write32(padapter, REG_MAR + 4, 0xFFFFFFFF); /* Offset 0x0624-0x0627 */
 
        /*  Accept all data frames */
        value16 = 0xFFFF;