mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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 <nikolayof23@gmail.com> Link: https://patch.msgid.link/20260419072034.19824-2-nikolayof23@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
59214b899b
commit
559101d0c8
|
|
@ -7,11 +7,6 @@
|
|||
#include <drv_types.h>
|
||||
#include <hal_data.h>
|
||||
|
||||
void rtw_hal_chip_configure(struct adapter *padapter)
|
||||
{
|
||||
rtl8723bs_interface_configure(padapter);
|
||||
}
|
||||
|
||||
void rtw_hal_read_chip_info(struct adapter *padapter)
|
||||
{
|
||||
ReadAdapterInfo8723BS(padapter);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
******************************************************************************/
|
||||
#include <drv_types.h>
|
||||
#include <hal_btcoex.h>
|
||||
#include <hal_data.h>
|
||||
#include <linux/jiffies.h>
|
||||
|
||||
#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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user