Staging: rtl8723bs: fix names in hal_phy.h

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

Signed-off-by: Marco Cesati <marcocesati@gmail.com>
Link: https://lore.kernel.org/r/20210317222130.29528-20-marcocesati@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Marco Cesati 2021-03-17 23:21:06 +01:00 committed by Greg Kroah-Hartman
parent 30bd370f74
commit ae92c1e557
7 changed files with 18 additions and 18 deletions

View File

@ -1673,7 +1673,7 @@ static s16 get_rate_sctn_idx(const u8 rate)
}
s8 phy_get_tx_pwr_lmt(struct adapter *adapter, u32 reg_pwr_tbl_sel,
enum BAND_TYPE band_type, enum CHANNEL_WIDTH bandwidth,
enum band_type band_type, enum CHANNEL_WIDTH bandwidth,
u8 rf_path, u8 data_rate, u8 channel)
{
s16 idx_band = -1;

View File

@ -108,7 +108,7 @@ void PHY_SetBBReg_8723B(
/* */
static u32 phy_RFSerialRead_8723B(
struct adapter *Adapter, enum RF_PATH eRFPath, u32 Offset
struct adapter *Adapter, enum rf_path eRFPath, u32 Offset
)
{
u32 retValue = 0;
@ -202,7 +202,7 @@ static u32 phy_RFSerialRead_8723B(
*/
static void phy_RFSerialWrite_8723B(
struct adapter *Adapter,
enum RF_PATH eRFPath,
enum rf_path eRFPath,
u32 Offset,
u32 Data
)

View File

@ -751,9 +751,9 @@ static u32 rtl8723bs_hal_init(struct adapter *padapter)
/* Joseph Note: Keep RfRegChnlVal for later use. */
/* */
pHalData->RfRegChnlVal[0] =
PHY_QueryRFReg(padapter, (enum RF_PATH)0, RF_CHNLBW, bRFRegOffsetMask);
PHY_QueryRFReg(padapter, (enum rf_path)0, RF_CHNLBW, bRFRegOffsetMask);
pHalData->RfRegChnlVal[1] =
PHY_QueryRFReg(padapter, (enum RF_PATH)1, RF_CHNLBW, bRFRegOffsetMask);
PHY_QueryRFReg(padapter, (enum rf_path)1, RF_CHNLBW, bRFRegOffsetMask);
/* if (!pHalData->bMACFuncEnable) { */

View File

@ -178,7 +178,7 @@ u8 Channel,
);
s8 phy_get_tx_pwr_lmt(struct adapter *adapter, u32 RegPwrTblSel,
enum BAND_TYPE Band, enum CHANNEL_WIDTH Bandwidth,
enum band_type Band, enum CHANNEL_WIDTH Bandwidth,
u8 RfPath,
u8 DataRate,
u8 Channel

View File

@ -187,10 +187,10 @@ struct hal_com_data {
u16 FirmwareSignature;
/* current WIFI_PHY values */
enum WIRELESS_MODE CurrentWirelessMode;
enum wireless_mode CurrentWirelessMode;
enum CHANNEL_WIDTH CurrentChannelBW;
enum BAND_TYPE CurrentBandType; /* 0:2.4G, 1:5G */
enum BAND_TYPE BandSet;
enum band_type CurrentBandType; /* 0:2.4G, 1:5G */
enum band_type BandSet;
u8 CurrentChannel;
u8 CurrentCenterFrequencyIndex1;
u8 nCur40MhzPrimeSC;/* Control channel sub-carrier */

View File

@ -42,14 +42,14 @@
/*--------------------------Define Parameters-------------------------------*/
enum BAND_TYPE {
enum band_type {
BAND_ON_2_4G = 0,
BAND_ON_5G,
BAND_ON_BOTH,
BANDMAX
};
enum RF_TYPE {
enum rf_type {
RF_TYPE_MIN = 0, /* 0 */
RF_8225 = 1, /* 1 11b/g RF for verification only */
RF_8256 = 2, /* 2 11b/g/n */
@ -59,7 +59,7 @@ enum RF_TYPE {
RF_TYPE_MAX
};
enum RF_PATH {
enum rf_path {
RF_PATH_A = 0,
RF_PATH_B,
RF_PATH_C,
@ -74,7 +74,7 @@ enum RF_PATH {
#define RF_PATH_MAX_92C_88E 2
#define RF_PATH_MAX_90_8812 4 /* Max RF number 90 support */
enum ANTENNA_PATH {
enum antenna_path {
ANTENNA_NONE = 0,
ANTENNA_D = 1,
ANTENNA_C = 2,
@ -93,7 +93,7 @@ enum ANTENNA_PATH {
ANTENNA_ABCD = 15
};
enum RF_CONTENT {
enum rf_content {
radioa_txt = 0x1000,
radiob_txt = 0x1001,
radioc_txt = 0x1002,
@ -108,7 +108,7 @@ enum BaseBand_Config_Type {
BaseBand_Config_PHY_REG_PG
};
enum HW_BLOCK {
enum hw_block {
HW_BLOCK_MAC = 0,
HW_BLOCK_PHY0 = 1,
HW_BLOCK_PHY1 = 2,
@ -116,7 +116,7 @@ enum HW_BLOCK {
HW_BLOCK_MAXIMUM = 4, /* Never use this */
};
enum WIRELESS_MODE {
enum wireless_mode {
WIRELESS_MODE_UNKNOWN = 0x00,
WIRELESS_MODE_A = 0x01,
WIRELESS_MODE_B = 0x02,
@ -146,7 +146,7 @@ struct SwChnlCmd {
u32 msDelay;
};
struct R_ANTENNA_SELECT_OFDM {
struct r_antenna_select_ofdm {
#ifdef __LITTLE_ENDIAN
u32 r_tx_antenna:4;
u32 r_ant_l:4;

View File

@ -89,7 +89,7 @@ struct mpt_context {
/* The RfPath of IO operation is depend of MptActType. */
u32 MptRfPath;
enum WIRELESS_MODE MptWirelessModeToSw; /* Wireless mode to switch. */
enum wireless_mode MptWirelessModeToSw; /* Wireless mode to switch. */
u8 MptChannelToSw; /* Channel to switch. */
u8 MptInitGainToSet; /* Initial gain to set. */
u32 MptBandWidth; /* bandwidth to switch. */