From: Nikolay Kulikov Date: Sun, 19 Apr 2026 07:19:27 +0000 (+0300) Subject: staging: rtl8723bs: remove wrapper rtw_hal_chip_configure() X-Git-Tag: v7.2-rc1~66^2~143 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=559101d0c8ade0f34c373844a16588bcf068fe38;p=thirdparty%2Flinux.git staging: rtl8723bs: remove wrapper rtw_hal_chip_configure() Remove the rtw_hal_chip_configure() function, as it's just a wrapper that calls rtl8723bs_interface_configure() directly. Instead, call rtl8723bs_interface_configure() from the appropriate places. This will reduce code complexity and improve readability by removing unnecessary abstraction. Signed-off-by: Nikolay Kulikov Link: https://patch.msgid.link/20260419072034.19824-2-nikolayof23@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/hal/hal_intf.c b/drivers/staging/rtl8723bs/hal/hal_intf.c index 27c0c0198714f..491208431396e 100644 --- a/drivers/staging/rtl8723bs/hal/hal_intf.c +++ b/drivers/staging/rtl8723bs/hal/hal_intf.c @@ -7,11 +7,6 @@ #include #include -void rtw_hal_chip_configure(struct adapter *padapter) -{ - rtl8723bs_interface_configure(padapter); -} - void rtw_hal_read_chip_info(struct adapter *padapter) { ReadAdapterInfo8723BS(padapter); diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging/rtl8723bs/include/hal_intf.h index b193854bfe6e9..7629cef95b066 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -195,7 +195,6 @@ void rtw_hal_get_hwreg(struct adapter *padapter, u8 variable, u8 *val); void rtw_hal_set_hwreg_with_buf(struct adapter *padapter, u8 variable, u8 *pbuf, int len); -void rtw_hal_chip_configure(struct adapter *padapter); void rtw_hal_read_chip_info(struct adapter *padapter); void rtw_hal_read_chip_version(struct adapter *padapter); diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c index d0feb28b7043e..f733692784bba 100644 --- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c +++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c @@ -6,6 +6,7 @@ ******************************************************************************/ #include #include +#include #include #ifndef dev_to_sdio_func @@ -265,7 +266,7 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct rtw_hal_read_chip_version(padapter); - rtw_hal_chip_configure(padapter); + rtl8723bs_interface_configure(padapter); hal_btcoex_Initialize((void *)padapter);