Skip to content

Commit

Permalink
staging: rtl8192e: Convert typedef BB_REGISTER_DEFINITION_T to struct…
Browse files Browse the repository at this point in the history
… bb_reg_definition

Remove typedef from struct.
Rename struct.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 24, 2011
1 parent 38b1f67 commit 9bf6e4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/rtl8192e/r8190P_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ typedef enum _INTERFACE_SELECT_8190PCI{
INTF_SEL3_RSV = 3,
} INTERFACE_SELECT_8190PCI, *PINTERFACE_SELECT_8190PCI;

typedef struct _BB_REGISTER_DEFINITION{
struct bb_reg_definition {
u32 rfintfs;
u32 rfintfi;
u32 rfintfo;
Expand All @@ -178,7 +178,7 @@ typedef struct _BB_REGISTER_DEFINITION{
u32 rfTxAFE;
u32 rfLSSIReadBack;
u32 rfLSSIReadBackPi;
}BB_REGISTER_DEFINITION_T, *PBB_REGISTER_DEFINITION_T;
};//, *struct bb_reg_definition *;

typedef struct _TX_FWINFO_STRUCUTRE{
u8 TxRate:7;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/r8190P_rtl8256.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ bool phy_RF8256_Config_ParaFile(struct net_device* dev)
u32 u4RegValue = 0;
u8 eRFPath;
bool rtStatus = true;
BB_REGISTER_DEFINITION_T *pPhyReg;
struct bb_reg_definition *pPhyReg;
struct r8192_priv *priv = rtllib_priv(dev);
u32 RegOffSetToBeCheck = 0x3;
u32 RegValueToBeCheck = 0x7f1;
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/rtl8192e/r8192E_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ u32 rtl8192_phy_RFSerialRead(struct net_device* dev, RF90_RADIO_PATH_E eRFPath,
struct r8192_priv *priv = rtllib_priv(dev);
u32 ret = 0;
u32 NewOffset = 0;
BB_REGISTER_DEFINITION_T* pPhyReg = &priv->PHYRegDef[eRFPath];
struct bb_reg_definition* pPhyReg = &priv->PHYRegDef[eRFPath];
Offset &= 0x3f;

if (priv->rf_chip == RF_8256)
Expand Down Expand Up @@ -164,7 +164,7 @@ void rtl8192_phy_RFSerialWrite(struct net_device* dev, RF90_RADIO_PATH_E eRFPath
{
struct r8192_priv *priv = rtllib_priv(dev);
u32 DataAndAddr = 0, NewOffset = 0;
BB_REGISTER_DEFINITION_T *pPhyReg = &priv->PHYRegDef[eRFPath];
struct bb_reg_definition *pPhyReg = &priv->PHYRegDef[eRFPath];

Offset &= 0x3f;
if (priv->rf_chip == RF_8256)
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtl_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ typedef struct r8192_priv
RT_RF_TYPE_819xU rf_chip;
IC_INFERIORITY_8192S IC_Class;
HT_CHANNEL_WIDTH CurrentChannelBW;
BB_REGISTER_DEFINITION_T PHYRegDef[4];
struct bb_reg_definition PHYRegDef[4];
rate_adaptive rate_adaptive;

ccktxbbgain_struct cck_txbbgain_table[CCKTxBBGainTableLength];
Expand Down

0 comments on commit 9bf6e4c

Please sign in to comment.