Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: rtl8723bs: fix names in HalPhyRf.h

This commit converts names of structs / enums
in hal/HalPhyRf.h from ALL_CAPS format to lowercase

Signed-off-by: Marco Cesati <marcocesati@gmail.com>
Link: https://lore.kernel.org/r/20210317222130.29528-40-marcocesati@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Marco Cesati and committed by
Greg Kroah-Hartman
172dc47d 0c10f844

+11 -11
+2 -2
drivers/staging/rtl8723bs/hal/HalPhyRf.c
··· 23 23 } while (0) 24 24 25 25 26 - void ConfigureTxpowerTrack(struct DM_ODM_T *pDM_Odm, struct TXPWRTRACK_CFG *pConfig) 26 + void ConfigureTxpowerTrack(struct DM_ODM_T *pDM_Odm, struct txpwrtrack_cfg *pConfig) 27 27 { 28 28 ConfigureTxpowerTrack_8723B(pConfig); 29 29 } ··· 83 83 u8 OFDM_min_index = 0; /* OFDM BB Swing should be less than +3.0dB, which is required by Arthur */ 84 84 u8 Indexforchannel = 0; /* GetRightChnlPlaceforIQK(pHalData->CurrentChannel) */ 85 85 86 - struct TXPWRTRACK_CFG c; 86 + struct txpwrtrack_cfg c; 87 87 88 88 89 89 /* 4 1. The following TWO tables decide the final index of OFDM/CCK swing table. */
+5 -5
drivers/staging/rtl8723bs/hal/HalPhyRf.h
··· 8 8 #ifndef __HAL_PHY_RF_H__ 9 9 #define __HAL_PHY_RF_H__ 10 10 11 - enum SPUR_CAL_METHOD { 11 + enum spur_cal_method { 12 12 PLL_RESET, 13 13 AFE_PHASE_SEL 14 14 }; 15 15 16 - enum PWRTRACK_METHOD { 16 + enum pwrtrack_method { 17 17 BBSWING, 18 18 TXAGC, 19 19 MIX_MODE 20 20 }; 21 21 22 - typedef void (*FuncSetPwr)(struct DM_ODM_T *, enum PWRTRACK_METHOD, u8, u8); 22 + typedef void (*FuncSetPwr)(struct DM_ODM_T *, enum pwrtrack_method, u8, u8); 23 23 typedef void (*FuncIQK)(struct DM_ODM_T *, u8, u8, u8); 24 24 typedef void (*FuncLCK)(struct DM_ODM_T *); 25 25 typedef void (*FuncSwing)(struct DM_ODM_T *, u8 **, u8 **, u8 **, u8 **); 26 26 27 - struct TXPWRTRACK_CFG { 27 + struct txpwrtrack_cfg { 28 28 u8 SwingTableSize_CCK; 29 29 u8 SwingTableSize_OFDM; 30 30 u8 Threshold_IQK; ··· 37 37 FuncSwing GetDeltaSwingTable; 38 38 }; 39 39 40 - void ConfigureTxpowerTrack(struct DM_ODM_T *pDM_Odm, struct TXPWRTRACK_CFG *pConfig); 40 + void ConfigureTxpowerTrack(struct DM_ODM_T *pDM_Odm, struct txpwrtrack_cfg *pConfig); 41 41 42 42 43 43 void ODM_ClearTxPowerTrackingState(struct DM_ODM_T *pDM_Odm);
+2 -2
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c
··· 186 186 *---------------------------------------------------------------------------*/ 187 187 void ODM_TxPwrTrackSetPwr_8723B( 188 188 struct DM_ODM_T *pDM_Odm, 189 - enum PWRTRACK_METHOD Method, 189 + enum pwrtrack_method Method, 190 190 u8 RFPath, 191 191 u8 ChannelMappedIndex 192 192 ) ··· 409 409 } 410 410 411 411 412 - void ConfigureTxpowerTrack_8723B(struct TXPWRTRACK_CFG *pConfig) 412 + void ConfigureTxpowerTrack_8723B(struct txpwrtrack_cfg *pConfig) 413 413 { 414 414 pConfig->SwingTableSize_CCK = CCK_TABLE_SIZE; 415 415 pConfig->SwingTableSize_OFDM = OFDM_TABLE_SIZE;
+2 -2
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.h
··· 16 16 #define RF_T_METER_8723B 0x42 /* */ 17 17 18 18 19 - void ConfigureTxpowerTrack_8723B(struct TXPWRTRACK_CFG *pConfig); 19 + void ConfigureTxpowerTrack_8723B(struct txpwrtrack_cfg *pConfig); 20 20 21 21 void DoIQK_8723B( 22 22 struct DM_ODM_T *pDM_Odm, ··· 27 27 28 28 void ODM_TxPwrTrackSetPwr_8723B( 29 29 struct DM_ODM_T *pDM_Odm, 30 - enum PWRTRACK_METHOD Method, 30 + enum pwrtrack_method Method, 31 31 u8 RFPath, 32 32 u8 ChannelMappedIndex 33 33 );