Skip to contentSkip to conversation

staging: rtl8723bs: remove leftover code for other chips

PATCH Superseded Artur Bujdoso 2 participants 2 messages Apr 19, 2022 – Apr 20, 2022 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: rtl8723bs: remove leftover code for other chips

Clean up unreferenced definitions in hal headers and code.

---
 drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h  |  11 -
 drivers/staging/rtl8723bs/hal/hal_btcoex.c    |   8 -
 drivers/staging/rtl8723bs/include/HalVerDef.h |  10 -
 .../staging/rtl8723bs/include/hal_com_reg.h   | 295 ------------------
 4 files changed, 324 deletions(-)
drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h +0 -11
index af50674b2a65..9091f2f75fe1 100644
@@ -68,16 +68,6 @@ enum btc_chip_interface {
 	BTC_INTF_MAX
 };
 
-enum {
-	BTC_CHIP_UNDEF		= 0,
-	BTC_CHIP_CSR_BC4	= 1,
-	BTC_CHIP_CSR_BC8	= 2,
-	BTC_CHIP_RTL8723A	= 3,
-	BTC_CHIP_RTL8821	= 4,
-	BTC_CHIP_RTL8723B	= 5,
-	BTC_CHIP_MAX
-};
-
 /*  following is for wifi link status */
 #define WIFI_STA_CONNECTED				BIT0
 #define WIFI_AP_CONNECTED				BIT1
@@ -87,7 +77,6 @@ enum {
 
 struct btc_board_info {
 	/*  The following is some board information */
-	u8 btChipType;
 	u8 pgAntNum;	/*  pg ant number */
 	u8 btdmAntNum;	/*  ant number for btdm */
 	u8 btdmAntPos;		/* Bryant Add to indicate Antenna Position for (pgAntNum = 2) && (btdmAntNum = 1)  (DPDT+1Ant case) */
drivers/staging/rtl8723bs/hal/hal_btcoex.c +0 -8
index f4b3e8b28712..9acd49323c7c 100644
@@ -1113,11 +1113,6 @@ void EXhalbtcoutsrc_Periodical(struct btc_coexist *pBtCoexist)
 /* 	halbtcoutsrc_NormalLowPower(pBtCoexist); */
 }
 
-void EXhalbtcoutsrc_SetChipType(u8 chipType)
-{
-	GLBtCoexist.boardInfo.btChipType = BTC_CHIP_RTL8723B;
-}
-
 void EXhalbtcoutsrc_SetAntNum(u8 type, u8 antNum)
 {
 	if (BT_COEX_ANT_TYPE_PG == type) {
@@ -1188,9 +1183,6 @@ void hal_btcoex_SetChipType(struct adapter *padapter, u8 chipType)
 
 
 	pHalData = GET_HAL_DATA(padapter);
-	pHalData->bt_coexist.btChipType = chipType;
-
-	EXhalbtcoutsrc_SetChipType(chipType);
 }
 
 void hal_btcoex_SetPgAntNum(struct adapter *padapter, u8 antNum)
drivers/staging/rtl8723bs/include/HalVerDef.h +0 -10
index 8f654a49fb9d..d0ce21ccc1cc 100644
@@ -9,16 +9,7 @@
 
 /*  hal_ic_type_e */
 enum hal_ic_type_e { /* tag_HAL_IC_Type_Definition */
-	CHIP_8192S	=	0,
-	CHIP_8188C	=	1,
-	CHIP_8192C	=	2,
-	CHIP_8192D	=	3,
-	CHIP_8723A	=	4,
-	CHIP_8188E	=	5,
-	CHIP_8812	=	6,
-	CHIP_8821	=	7,
 	CHIP_8723B	=	8,
-	CHIP_8192E	=	9,
 };
 
 /* hal_chip_type_e */
@@ -58,7 +49,6 @@ struct hal_version { /* tag_HAL_VERSION */
 	u8 			ROMVer;
 };
 
-/* VERSION_8192C			VersionID; */
 /* hal_version			VersionID; */
 
 /*  Get element */
drivers/staging/rtl8723bs/include/hal_com_reg.h +0 -295

362 lines not on this page · raw message

Signature · 1 line
2.30.2
#1 lore raw
Quoted 10 lines · Artur Bujdoso

Clean up unreferenced definitions in hal headers and code.

---
 drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h  |  11 -
 drivers/staging/rtl8723bs/hal/hal_btcoex.c    |   8 -
 drivers/staging/rtl8723bs/include/HalVerDef.h |  10 -
 .../staging/rtl8723bs/include/hal_com_reg.h   | 295 ------------------
 4 files changed, 324 deletions(-)

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.

You are receiving this message because of the following common error(s) as indicated below:

- This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what needs to be done here to properly describe this.

If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.

thanks,

greg k-h's patch email bot