Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723bs: Improve clarity of MAR usage

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>

authored by

Manjae Cho and committed by
Greg Kroah-Hartman
f0bf2c33 6d2c95ab

+2 -2
+2 -2
drivers/staging/rtl8723bs/hal/sdio_halinit.c
··· 380 380 rtw_write32(padapter, REG_RCR, pHalData->ReceiveConfig); 381 381 382 382 /* Accept all multicast address */ 383 - rtw_write32(padapter, REG_MAR, 0xFFFFFFFF); 384 - rtw_write32(padapter, REG_MAR + 4, 0xFFFFFFFF); 383 + rtw_write32(padapter, REG_MAR, 0xFFFFFFFF); /* Offset 0x0620-0x0623 */ 384 + rtw_write32(padapter, REG_MAR + 4, 0xFFFFFFFF); /* Offset 0x0624-0x0627 */ 385 385 386 386 /* Accept all data frames */ 387 387 value16 = 0xFFFF;