rtl8188eu: Remove useless IN and OUT from parameter lists

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-03-13 12:06:38 -05:00
parent 460e260891
commit d26bbefc3a
42 changed files with 1379 additions and 1410 deletions

View file

@ -52,14 +52,14 @@ u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN]={0};
bool
Efuse_Read1ByteFromFakeContent(
IN struct adapter *pAdapter,
IN u16 Offset,
IN OUT u8 *Value );
struct adapter *pAdapter,
u16 Offset,
u8 *Value );
bool
Efuse_Read1ByteFromFakeContent(
IN struct adapter *pAdapter,
IN u16 Offset,
IN OUT u8 *Value )
struct adapter *pAdapter,
u16 Offset,
u8 *Value )
{
if(Offset >= EFUSE_MAX_HW_SIZE)
{
@ -75,14 +75,14 @@ Efuse_Read1ByteFromFakeContent(
bool
Efuse_Write1ByteToFakeContent(
IN struct adapter *pAdapter,
IN u16 Offset,
IN u8 Value );
struct adapter *pAdapter,
u16 Offset,
u8 Value );
bool
Efuse_Write1ByteToFakeContent(
IN struct adapter *pAdapter,
IN u16 Offset,
IN u8 Value )
struct adapter *pAdapter,
u16 Offset,
u8 Value )
{
if(Offset >= EFUSE_MAX_HW_SIZE)
{
@ -117,9 +117,9 @@ Efuse_Write1ByteToFakeContent(
*---------------------------------------------------------------------------*/
void
Efuse_PowerSwitch(
IN struct adapter *pAdapter,
IN u8 bWrite,
IN u8 PwrState)
struct adapter *pAdapter,
u8 bWrite,
u8 PwrState)
{
pAdapter->HalFunc.EfusePowerSwitch(pAdapter, bWrite, PwrState);
}
@ -142,9 +142,9 @@ Efuse_PowerSwitch(
*---------------------------------------------------------------------------*/
u16
Efuse_GetCurrentSize(
IN struct adapter * pAdapter,
IN u8 efuseType,
IN bool bPseudoTest)
struct adapter * pAdapter,
u8 efuseType,
bool bPseudoTest)
{
u16 ret=0;
@ -155,7 +155,7 @@ Efuse_GetCurrentSize(
/* 11/16/2008 MH Add description. Get current efuse area enabled word!!. */
u8
Efuse_CalculateWordCnts(IN u8 word_en)
Efuse_CalculateWordCnts(u8 word_en)
{
u8 word_cnts = 0;
if(!(word_en & BIT(0))) word_cnts++; /* 0 : write enable */
@ -181,7 +181,7 @@ ReadEFuseByte(
struct adapter *Adapter,
u16 _offset,
u8 *pbuf,
IN bool bPseudoTest)
bool bPseudoTest)
{
u32 value32;
u8 readbyte;
@ -251,7 +251,7 @@ efuse_ReadEFuse(
u16 _offset,
u16 _size_byte,
u8 *pbuf,
IN bool bPseudoTest
bool bPseudoTest
);
void
efuse_ReadEFuse(
@ -260,7 +260,7 @@ efuse_ReadEFuse(
u16 _offset,
u16 _size_byte,
u8 *pbuf,
IN bool bPseudoTest
bool bPseudoTest
)
{
Adapter->HalFunc.ReadEFuse(Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
@ -268,11 +268,11 @@ efuse_ReadEFuse(
void
EFUSE_GetEfuseDefinition(
IN struct adapter *pAdapter,
IN u8 efuseType,
IN u8 type,
OUT void *pOut,
IN bool bPseudoTest
struct adapter *pAdapter,
u8 efuseType,
u8 type,
void *pOut,
bool bPseudoTest
)
{
pAdapter->HalFunc.EFUSEGetEfuseDefinition(pAdapter, efuseType, type, pOut, bPseudoTest);
@ -296,8 +296,8 @@ EFUSE_GetEfuseDefinition(
*---------------------------------------------------------------------------*/
u8
EFUSE_Read1Byte(
IN struct adapter *Adapter,
IN u16 Address)
struct adapter *Adapter,
u16 Address)
{
u8 data;
u8 Bytetemp = {0x00};
@ -361,14 +361,14 @@ EFUSE_Read1Byte(
void
EFUSE_Write1Byte(
IN struct adapter *Adapter,
IN u16 Address,
IN u8 Value);
struct adapter *Adapter,
u16 Address,
u8 Value);
void
EFUSE_Write1Byte(
IN struct adapter *Adapter,
IN u16 Address,
IN u8 Value)
struct adapter *Adapter,
u16 Address,
u8 Value)
{
u8 Bytetemp = {0x00};
u8 temp = {0x00};
@ -414,10 +414,10 @@ EFUSE_Write1Byte(
/* 11/16/2008 MH Read one byte from real Efuse. */
u8
efuse_OneByteRead(
IN struct adapter *pAdapter,
IN u16 addr,
IN u8 *data,
IN bool bPseudoTest)
struct adapter *pAdapter,
u16 addr,
u8 *data,
bool bPseudoTest)
{
u8 tmpidx = 0;
u8 bResult;
@ -455,10 +455,10 @@ efuse_OneByteRead(
/* 11/16/2008 MH Write one byte to reald Efuse. */
u8
efuse_OneByteWrite(
IN struct adapter *pAdapter,
IN u16 addr,
IN u8 data,
IN bool bPseudoTest)
struct adapter *pAdapter,
u16 addr,
u8 data,
bool bPseudoTest)
{
u8 tmpidx = 0;
u8 bResult;
@ -498,10 +498,10 @@ efuse_OneByteWrite(
}
int
Efuse_PgPacketRead( IN struct adapter *pAdapter,
IN u8 offset,
IN u8 *data,
IN bool bPseudoTest)
Efuse_PgPacketRead( struct adapter *pAdapter,
u8 offset,
u8 *data,
bool bPseudoTest)
{
int ret=0;
@ -511,11 +511,11 @@ Efuse_PgPacketRead( IN struct adapter *pAdapter,
}
int
Efuse_PgPacketWrite(IN struct adapter *pAdapter,
IN u8 offset,
IN u8 word_en,
IN u8 *data,
IN bool bPseudoTest)
Efuse_PgPacketWrite(struct adapter *pAdapter,
u8 offset,
u8 word_en,
u8 *data,
bool bPseudoTest)
{
int ret;
@ -526,11 +526,11 @@ Efuse_PgPacketWrite(IN struct adapter *pAdapter,
static int
Efuse_PgPacketWrite_BT(IN struct adapter *pAdapter,
IN u8 offset,
IN u8 word_en,
IN u8 *data,
IN bool bPseudoTest)
Efuse_PgPacketWrite_BT(struct adapter *pAdapter,
u8 offset,
u8 word_en,
u8 *data,
bool bPseudoTest)
{
int ret;
@ -557,9 +557,9 @@ Efuse_PgPacketWrite_BT(IN struct adapter *pAdapter,
*
*---------------------------------------------------------------------------*/
void
efuse_WordEnableDataRead(IN u8 word_en,
IN u8 *sourdata,
IN u8 *targetdata)
efuse_WordEnableDataRead(u8 word_en,
u8 *sourdata,
u8 *targetdata)
{
if (!(word_en&BIT(0)))
{
@ -585,11 +585,11 @@ efuse_WordEnableDataRead(IN u8 word_en,
u8
Efuse_WordEnableDataWrite( IN struct adapter *pAdapter,
IN u16 efuse_addr,
IN u8 word_en,
IN u8 *data,
IN bool bPseudoTest)
Efuse_WordEnableDataWrite( struct adapter *pAdapter,
u16 efuse_addr,
u8 word_en,
u8 *data,
bool bPseudoTest)
{
u8 ret=0;
@ -916,16 +916,16 @@ exit:
*---------------------------------------------------------------------------*/
void
Efuse_ReadAllMap(
IN struct adapter *pAdapter,
IN u8 efuseType,
IN OUT u8 *Efuse,
IN bool bPseudoTest);
struct adapter *pAdapter,
u8 efuseType,
u8 *Efuse,
bool bPseudoTest);
void
Efuse_ReadAllMap(
IN struct adapter *pAdapter,
IN u8 efuseType,
IN OUT u8 *Efuse,
IN bool bPseudoTest)
struct adapter *pAdapter,
u8 efuseType,
u8 *Efuse,
bool bPseudoTest)
{
u16 mapLen=0;
@ -958,9 +958,9 @@ Efuse_ReadAllMap(
*---------------------------------------------------------------------------*/
static void
efuse_ShadowRead1Byte(
IN struct adapter *pAdapter,
IN u16 Offset,
IN OUT u8 *Value)
struct adapter *pAdapter,
u16 Offset,
u8 *Value)
{
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
@ -971,9 +971,9 @@ efuse_ShadowRead1Byte(
/* Read Two Bytes */
static void
efuse_ShadowRead2Byte(
IN struct adapter *pAdapter,
IN u16 Offset,
IN OUT u16 *Value)
struct adapter *pAdapter,
u16 Offset,
u16 *Value)
{
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
@ -985,9 +985,9 @@ efuse_ShadowRead2Byte(
/* Read Four Bytes */
static void
efuse_ShadowRead4Byte(
IN struct adapter *pAdapter,
IN u16 Offset,
IN OUT u32 *Value)
struct adapter *pAdapter,
u16 Offset,
u32 *Value)
{
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
@ -1020,15 +1020,15 @@ efuse_ShadowRead4Byte(
#ifdef PLATFORM
static void
efuse_ShadowWrite1Byte(
IN struct adapter *pAdapter,
IN u16 Offset,
IN u8 Value);
struct adapter *pAdapter,
u16 Offset,
u8 Value);
#endif /* PLATFORM */
static void
efuse_ShadowWrite1Byte(
IN struct adapter *pAdapter,
IN u16 Offset,
IN u8 Value)
struct adapter *pAdapter,
u16 Offset,
u8 Value)
{
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
@ -1039,9 +1039,9 @@ efuse_ShadowWrite1Byte(
/* Write Two Bytes */
static void
efuse_ShadowWrite2Byte(
IN struct adapter *pAdapter,
IN u16 Offset,
IN u16 Value)
struct adapter *pAdapter,
u16 Offset,
u16 Value)
{
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
@ -1053,9 +1053,9 @@ efuse_ShadowWrite2Byte(
/* Write Four Bytes */
static void
efuse_ShadowWrite4Byte(
IN struct adapter *pAdapter,
IN u16 Offset,
IN u32 Value)
struct adapter *pAdapter,
u16 Offset,
u32 Value)
{
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
@ -1083,9 +1083,9 @@ efuse_ShadowWrite4Byte(
*
*---------------------------------------------------------------------------*/
void EFUSE_ShadowMapUpdate(
IN struct adapter *pAdapter,
IN u8 efuseType,
IN bool bPseudoTest)
struct adapter *pAdapter,
u8 efuseType,
bool bPseudoTest)
{
EEPROM_EFUSE_PRIV *pEEPROM = GET_EEPROM_EFUSE_PRIV(pAdapter);
u16 mapLen=0;
@ -1116,10 +1116,10 @@ void EFUSE_ShadowMapUpdate(
*---------------------------------------------------------------------------*/
void
EFUSE_ShadowRead(
IN struct adapter *pAdapter,
IN u8 Type,
IN u16 Offset,
IN OUT u32 *Value )
struct adapter *pAdapter,
u8 Type,
u16 Offset,
u32 *Value )
{
if (Type == 1)
efuse_ShadowRead1Byte(pAdapter, Offset, (u8 *)Value);
@ -1148,16 +1148,16 @@ EFUSE_ShadowRead(
*---------------------------------------------------------------------------*/
void
EFUSE_ShadowWrite(
IN struct adapter *pAdapter,
IN u8 Type,
IN u16 Offset,
IN OUT u32 Value);
struct adapter *pAdapter,
u8 Type,
u16 Offset,
u32 Value);
void
EFUSE_ShadowWrite(
IN struct adapter *pAdapter,
IN u8 Type,
IN u16 Offset,
IN OUT u32 Value)
struct adapter *pAdapter,
u8 Type,
u16 Offset,
u32 Value)
{
#if (MP_DRIVER == 0)
return;
@ -1177,11 +1177,11 @@ EFUSE_ShadowWrite(
void
Efuse_InitSomeVar(
IN struct adapter *pAdapter
struct adapter *pAdapter
);
void
Efuse_InitSomeVar(
IN struct adapter *pAdapter
struct adapter *pAdapter
)
{
u8 i;

View file

@ -5111,7 +5111,7 @@ static unsigned int on_action_public_p2p(union recv_frame *precv_frame)
/* The peer interface address should be the address for WPS mac address */
memcpy( pwdinfo->p2p_peer_device_addr, group_id.go_device_addr , ETH_ALEN );
rtw_p2p_set_role( pwdinfo, P2P_ROLE_CLIENT );
rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ_JOIN );
rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ_JOIN);
status_code = P2P_STATUS_SUCCESS;
}
}
@ -6956,8 +6956,8 @@ void issue_assocreq(struct adapter *padapter)
/* Config Method */
/* This field should be big endian. Noted by P2P specification. */
if ( ( pwdinfo->ui_got_wps_info == P2P_GOT_WPSINFO_PEER_DISPLAY_PIN ) ||
( pwdinfo->ui_got_wps_info == P2P_GOT_WPSINFO_SELF_DISPLAY_PIN ) )
if ( ( pwdinfo->ui_got_wps_info == P2P_GOT_WPSINFO_PEER_DISPLAY_PIN) ||
( pwdinfo->ui_got_wps_info == P2P_GOT_WPSINFO_SELF_DISPLAY_PIN) )
{
*(__be16*) ( p2pie + p2pielen ) = cpu_to_be16( WPS_CONFIG_METHOD_DISPLAY );
}
@ -8000,8 +8000,8 @@ Following are some utitity fuctions for WiFi MLME
*****************************************************************************/
bool IsLegal5GChannel(
IN struct adapter * Adapter,
IN u8 channel)
struct adapter * Adapter,
u8 channel)
{
int i=0;

View file

@ -627,7 +627,7 @@ void LPS_Leave(struct adapter *padapter)
/* Description: Leave all power save mode: LPS, FwLPS, IPS if needed. */
/* Move code to function by tynli. 2010.03.26. */
/* */
void LeaveAllPowerSaveMode(IN struct adapter *Adapter)
void LeaveAllPowerSaveMode(struct adapter *Adapter)
{
struct mlme_priv *pmlmepriv = &(Adapter->mlmepriv);
u8 enqueue = 0;

View file

@ -302,8 +302,8 @@ void get_rate_set(struct adapter *padapter, unsigned char *pbssrate, int *bssrat
}
void UpdateBrateTbl(
IN struct adapter * Adapter,
IN u8 *mBratesOS
struct adapter * Adapter,
u8 *mBratesOS
)
{
u8 i;