OSDN Git Service

rtl8723au: Convert pu1Byte to "u8 *"
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 7 Dec 2013 00:32:52 +0000 (18:32 -0600)
committerLarry Finger <Larry.Finger@lwfinger.net>
Sat, 7 Dec 2013 00:32:52 +0000 (18:32 -0600)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
hal/odm.c
hal/odm_HWConfig.c
hal/odm_interface.c
hal/rtl8723a_phycfg.c
include/basic_types.h
include/odm.h
include/odm_HWConfig.h
include/odm_debug.h
include/odm_interface.h
include/odm_types.h

index 01224c0..b91fff3 100644 (file)
--- a/hal/odm.c
+++ b/hal/odm.c
@@ -2398,7 +2398,7 @@ ODM_RAStateCheck(
                PDM_ODM_T               pDM_Odm,
                s4Byte                  RSSI,
                bool                    bForceUpdate,
-               pu1Byte                 pRATRState
+               u8 *                    pRATRState
        )
 {
        PODM_RATE_ADAPTIVE pRA = &pDM_Odm->RateAdaptive;
index 292e923..93a4614 100644 (file)
@@ -381,7 +381,7 @@ void
 odm_RxPhyStatus92CSeries_Parsing(
        PDM_ODM_T                                       pDM_Odm,
        PODM_PHY_INFO_T                 pPhyInfo,
-       pu1Byte                                         pPhyStatus,
+       u8 *                                            pPhyStatus,
        PODM_PACKET_INFO_T                      pPktinfo
        )
 {
@@ -961,7 +961,7 @@ void
 ODM_PhyStatusQuery_92CSeries(
        PDM_ODM_T                                       pDM_Odm,
                PODM_PHY_INFO_T                         pPhyInfo,
-               pu1Byte                                         pPhyStatus,
+               u8 *                                            pPhyStatus,
                PODM_PACKET_INFO_T                      pPktinfo
        )
 {
@@ -994,7 +994,7 @@ void
 ODM_PhyStatusQuery_JaguarSeries(
        PDM_ODM_T                                       pDM_Odm,
                PODM_PHY_INFO_T                 pPhyInfo,
-               pu1Byte                                         pPhyStatus,
+               u8 *                                            pPhyStatus,
                PODM_PACKET_INFO_T                      pPktinfo
        )
 {
@@ -1006,7 +1006,7 @@ void
 ODM_PhyStatusQuery(
        PDM_ODM_T                                       pDM_Odm,
                PODM_PHY_INFO_T                         pPhyInfo,
-               pu1Byte                                         pPhyStatus,
+               u8 *                                            pPhyStatus,
                PODM_PACKET_INFO_T                      pPktinfo
        )
 {
@@ -1017,7 +1017,7 @@ ODM_PhyStatusQuery(
 void
 ODM_MacStatusQuery(
        PDM_ODM_T                                       pDM_Odm,
-               pu1Byte                                         pMacStatus,
+               u8 *                                            pMacStatus,
                u1Byte                                          MacID,
                bool                                            bPacketMatchBSSID,
                bool                                            bPacketToSelf,
index d252e48..0cb50d4 100644 (file)
@@ -582,7 +582,7 @@ ODM_FillH2CCmd(
        PADAPTER                Adapter,
        u1Byte  ElementID,
        u4Byte  CmdLen,
-       pu1Byte pCmdBuffer
+       u8 *    pCmdBuffer
 )
 {
        if(IS_HARDWARE_TYPE_JAGUAR(Adapter))
@@ -622,13 +622,13 @@ ODM_FillH2CCmd(
 #else
 u4Byte
 ODM_FillH2CCmd(
-       pu1Byte         pH2CBuffer,
+       u8 *            pH2CBuffer,
        u4Byte          H2CBufferLen,
        u4Byte          CmdNum,
        pu4Byte         pElementID,
        pu4Byte         pCmdLen,
-       pu1Byte*                pCmbBuffer,
-       pu1Byte         CmdStartSeq
+       u8 **           pCmbBuffer,
+       u8 *            CmdStartSeq
        )
 {
 #if(DM_ODM_SUPPORT_TYPE & (ODM_AP|ODM_ADSL))
index 9331be1..5b6cd1b 100644 (file)
@@ -2085,7 +2085,7 @@ _PHY_SetBWMode92C(
 
        regBwOpMode = rtw_read8(Adapter, REG_BWOPMODE);
        regRRSR_RSC = rtw_read8(Adapter, REG_RRSR+2);
-       //regBwOpMode = rtw_hal_get_hwreg(Adapter,HW_VAR_BWMODE,(pu1Byte)&regBwOpMode);
+       //regBwOpMode = rtw_hal_get_hwreg(Adapter,HW_VAR_BWMODE,(u8 *)&regBwOpMode);
 
        switch(pHalData->CurrentChannelBW)
        {
index 99d30bb..cc649de 100644 (file)
@@ -210,7 +210,7 @@ typedef     __kernel_ssize_t        SSIZE_T;
 //pclint
 #define SET_BITS_TO_LE_1BYTE_8BIT(__pStart, __BitOffset, __BitLen, __Value) \
 { \
-       *((pu1Byte)(__pStart)) = \
+       *((u8 *)(__pStart)) = \
                EF1Byte( \
                        LE_BITS_CLEARED_TO_1BYTE_8BIT(__pStart, __BitOffset, __BitLen) \
                        | \
index 6cf6b98..52b950f 100644 (file)
@@ -1427,7 +1427,7 @@ ODM_RAStateCheck(
                PDM_ODM_T               pDM_Odm,
                s4Byte                  RSSI,
                bool                    bForceUpdate,
-               pu1Byte                 pRATRState
+               u8 *                    pRATRState
        );
 
 
index 0646e0e..f8aef35 100644 (file)
@@ -157,14 +157,14 @@ void
 ODM_PhyStatusQuery(
        PDM_ODM_T                                       pDM_Odm,
        PODM_PHY_INFO_T                 pPhyInfo,
-       pu1Byte                                         pPhyStatus,
+       u8 *                                            pPhyStatus,
        PODM_PACKET_INFO_T                      pPktinfo
        );
 
 void
 ODM_MacStatusQuery(
        PDM_ODM_T                                       pDM_Odm,
-       pu1Byte                                         pMacStatus,
+       u8 *                                            pMacStatus,
        u1Byte                                          MacID,
        bool                                            bPacketMatchBSSID,
        bool                                            bPacketToSelf,
index d0a89f0..5b942c9 100644 (file)
                        if(((comp) & pDM_Odm->DebugComponents) && (level <= pDM_Odm->DebugLevel))       \
                        {                                                                                                                                               \
                                int __i;                                                                                                                                \
-                               pu1Byte __ptr = (pu1Byte)ptr;                                                                                   \
+                               u8 *    __ptr = (u8 *)ptr;                                                                                      \
                                DbgPrint("[ODM] ");                                                                                                     \
                                DbgPrint(title_str);                                                                                            \
                                DbgPrint(" ");                                                                                                          \
index 020f594..5f260ef 100644 (file)
@@ -320,18 +320,18 @@ ODM_FillH2CCmd(
        PADAPTER                Adapter,
        u1Byte  ElementID,
        u4Byte  CmdLen,
-       pu1Byte pCmdBuffer
+       u8 *    pCmdBuffer
 );
 #else
 u4Byte
 ODM_FillH2CCmd(
-       pu1Byte         pH2CBuffer,
+       u8 *            pH2CBuffer,
        u4Byte          H2CBufferLen,
        u4Byte          CmdNum,
        pu4Byte         pElementID,
        pu4Byte         pCmdLen,
-       pu1Byte*                pCmbBuffer,
-       pu1Byte         CmdStartSeq
+       u8 **           pCmbBuffer,
+       u8 *            CmdStartSeq
        );
 #endif
 #endif // __ODM_INTERFACE_H__
index fe43a39..e15fec0 100644 (file)
@@ -53,8 +53,6 @@ typedef enum _RT_SPINLOCK_TYPE{
        #include <basic_types.h>
 
        #define u1Byte          u8
-       #define pu1Byte                 u8*
-
        #define u2Byte          u16
        #define pu2Byte                 u16*