From: Nikolay Kulikov Date: Sun, 19 Apr 2026 07:19:28 +0000 (+0300) Subject: staging: rtl8723bs: remove wrapper rtw_hal_read_chip_info() X-Git-Tag: v7.2-rc1~66^2~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5212b74d6edd6d76b2e9163c3f37862863432629;p=thirdparty%2Fkernel%2Flinux.git staging: rtl8723bs: remove wrapper rtw_hal_read_chip_info() Remove the rtw_hal_read_chip_info() function, as it's just a wrapper that calls ReadAdapterInfo8723BS() directly. Replace all its calls to the ReadAdapterInfo8723BS() function. This will remove an extra level of abstraction and simplify the code. Signed-off-by: Nikolay Kulikov Link: https://patch.msgid.link/20260419072034.19824-3-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 491208431396e..da250179fc924 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_read_chip_info(struct adapter *padapter) -{ - ReadAdapterInfo8723BS(padapter); -} - void rtw_hal_read_chip_version(struct adapter *padapter) { rtl8723b_read_chip_version(padapter); diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging/rtl8723bs/include/hal_intf.h index 7629cef95b066..8f5f2c63fc10c 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_read_chip_info(struct adapter *padapter); void rtw_hal_read_chip_version(struct adapter *padapter); u8 rtw_hal_get_def_var(struct adapter *padapter, enum hal_def_variable eVariable, void *pValue); diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c index f733692784bba..98eff17be9b67 100644 --- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c +++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c @@ -271,7 +271,7 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct hal_btcoex_Initialize((void *)padapter); /* 3 6. read efuse/eeprom data */ - rtw_hal_read_chip_info(padapter); + ReadAdapterInfo8723BS(padapter); /* 3 7. init driver common data */ if (rtw_init_drv_sw(padapter) == _FAIL)