From a0549c50419f0c5968a3256d4875c4fe0591db3e Mon Sep 17 00:00:00 2001 From: Pavel Skripkin Date: Tue, 24 Aug 2021 10:27:13 +0300 Subject: [PATCH] remove {read,write}_macreg These 2 functions are unused, so they can be simply removed Link: https://lore.kernel.org/r/d591e29d77da73790c71f7a8e508a8b16fd48f65.1629789580.git.paskripkin@gmail.com --- core/rtw_mp.c | 40 ---------------------------------------- include/rtw_mp.h | 2 -- 2 files changed, 42 deletions(-) diff --git a/core/rtw_mp.c b/core/rtw_mp.c index 9b76f72..b782d56 100644 --- a/core/rtw_mp.c +++ b/core/rtw_mp.c @@ -39,46 +39,6 @@ int rtfloor(float x) #endif #ifdef CONFIG_MP_INCLUDED -u32 read_macreg(_adapter *padapter, u32 addr, u32 sz) -{ - u32 val = 0; - - switch (sz) { - case 1: - val = rtw_read8(padapter, addr); - break; - case 2: - val = rtw_read16(padapter, addr); - break; - case 4: - val = rtw_read32(padapter, addr); - break; - default: - val = 0xffffffff; - break; - } - - return val; - -} - -void write_macreg(_adapter *padapter, u32 addr, u32 val, u32 sz) -{ - switch (sz) { - case 1: - rtw_write8(padapter, addr, (u8)val); - break; - case 2: - rtw_write16(padapter, addr, (u16)val); - break; - case 4: - rtw_write32(padapter, addr, val); - break; - default: - break; - } - -} u32 read_bbreg(_adapter *padapter, u32 addr, u32 bitmask) { diff --git a/include/rtw_mp.h b/include/rtw_mp.h index 6dbdd87..da707c4 100644 --- a/include/rtw_mp.h +++ b/include/rtw_mp.h @@ -700,8 +700,6 @@ extern void mp_stop_test(PADAPTER padapter); extern u32 _read_rfreg(PADAPTER padapter, u8 rfpath, u32 addr, u32 bitmask); extern void _write_rfreg(PADAPTER padapter, u8 rfpath, u32 addr, u32 bitmask, u32 val); -extern u32 read_macreg(_adapter *padapter, u32 addr, u32 sz); -extern void write_macreg(_adapter *padapter, u32 addr, u32 val, u32 sz); extern u32 read_bbreg(_adapter *padapter, u32 addr, u32 bitmask); extern void write_bbreg(_adapter *padapter, u32 addr, u32 bitmask, u32 val); extern u32 read_rfreg(PADAPTER padapter, u8 rfpath, u32 addr);