diff options
| author | Nikolay Kulikov <nikolayof23@gmail.com> | 2026-04-19 10:19:29 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-04-27 05:01:56 -0600 |
| commit | 84bb1ead7e8bcde8a25885462797bfe29cb09b9b (patch) | |
| tree | b7fcf58f427af7fcc3d3e189415d97216a93f5ea | |
| parent | 5212b74d6edd6d76b2e9163c3f37862863432629 (diff) | |
| download | linux-84bb1ead7e8bcde8a25885462797bfe29cb09b9b.tar.gz linux-84bb1ead7e8bcde8a25885462797bfe29cb09b9b.zip | |
staging: rtl8723bs: remove wrapper rtw_hal_read_chip_version()
Remove rtw_hal_read_chip_version() function, as it's just a wrapper
that calls rtl8723b_read_chip_version() directly. Replace all its calls
to the rtl8723b_read_chip_version(). This will remove an extra level of
abstraction and simplify the code.
Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260419072034.19824-4-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/rtl8723bs/hal/hal_intf.c | 5 | ||||
| -rw-r--r-- | drivers/staging/rtl8723bs/include/hal_intf.h | 2 | ||||
| -rw-r--r-- | drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 2 |
3 files changed, 1 insertions, 8 deletions
diff --git a/drivers/staging/rtl8723bs/hal/hal_intf.c b/drivers/staging/rtl8723bs/hal/hal_intf.c index da250179fc92..c3a238cb0b1e 100644 --- a/drivers/staging/rtl8723bs/hal/hal_intf.c +++ b/drivers/staging/rtl8723bs/hal/hal_intf.c @@ -7,11 +7,6 @@ #include <drv_types.h> #include <hal_data.h> -void rtw_hal_read_chip_version(struct adapter *padapter) -{ - rtl8723b_read_chip_version(padapter); -} - void rtw_hal_def_value_init(struct adapter *padapter) { rtl8723bs_init_default_value(padapter); diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging/rtl8723bs/include/hal_intf.h index 8f5f2c63fc10..0d2f60ce29af 100644 --- a/drivers/staging/rtl8723bs/include/hal_intf.h +++ b/drivers/staging/rtl8723bs/include/hal_intf.h @@ -195,8 +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_version(struct adapter *padapter); - u8 rtw_hal_get_def_var(struct adapter *padapter, enum hal_def_variable eVariable, void *pValue); void rtw_hal_set_odm_var(struct adapter *padapter, enum hal_odm_variable eVariable, void *pValue1, bool bSet); diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c index 98eff17be9b6..e487e238d737 100644 --- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c +++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c @@ -264,7 +264,7 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct if (rtw_init_io_priv(padapter, sdio_set_intf_ops) == _FAIL) goto free_hal_data; - rtw_hal_read_chip_version(padapter); + rtl8723b_read_chip_version(padapter); rtl8723bs_interface_configure(padapter); |
