OSDN Git Service

rtl8723au: Fix a couple of small problems
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 6 Dec 2013 15:49:21 +0000 (09:49 -0600)
committerLarry Finger <Larry.Finger@lwfinger.net>
Fri, 6 Dec 2013 15:49:21 +0000 (09:49 -0600)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Makefile
include/odm_interface.h

index d82d021..4a68178 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,8 +78,7 @@ export TopDIR ?= $(shell pwd)
 OUTSRC_FILES := hal/odm_debug.o        \
                hal/odm_interface.o\
                hal/odm_HWConfig.o\
-               hal/odm.o\
-               hal/HalPhyRf.o
+               hal/odm.o
 
 ifeq ($(CONFIG_RTL8723A), y)
 
index 6f18663..9e00e31 100644 (file)
@@ -101,34 +101,10 @@ typedef enum _ODM_H2C_CMD
 #if (DM_ODM_SUPPORT_TYPE != ODM_MP)
 typedef  void *PRT_WORK_ITEM ;
 typedef  void RT_WORKITEM_HANDLE,*PRT_WORKITEM_HANDLE;
-typedef void (*RT_WORKITEM_CALL_BACK)(void * pContext);
-
-#if 0
-typedef struct tasklet_struct RT_WORKITEM_HANDLE, *PRT_WORKITEM_HANDLE;
-
-typedef struct _RT_WORK_ITEM
-{
-
-       RT_WORKITEM_HANDLE                      Handle;                 // Platform-dependent handle for this workitem, e.g. Ndis Workitem object.
-       void *                                          Adapter;                // Pointer to Adapter object.
-       void *                                          pContext;               // Parameter to passed to CallBackFunc().
-       RT_WORKITEM_CALL_BACK           CallbackFunc;   // Callback function of the workitem.
-       u1Byte                                          RefCount;               // 0: driver is going to unload, 1: No such workitem scheduled, 2: one workitem is schedueled.
-       void *                                          pPlatformExt;   // Pointer to platform-dependent extension.
-       bool                                            bFree;
-       char                                            szID[36];               // An identity string of this workitem.
-}RT_WORK_ITEM, *PRT_WORK_ITEM;
+typedef void (*RT_WORKITEM_CALL_BACK)(void *pContext);
 
 #endif
 
-
-#endif
-
-//
-// =========== Extern Variable ??? It should be forbidden.
-//
-
-
 //
 // =========== EXtern Function Prototype
 //
@@ -227,21 +203,21 @@ ODM_GetRFReg(
 void
 ODM_AllocateMemory(
        PDM_ODM_T       pDM_Odm,
-       void *          *pPtr,
+       void            **pPtr,
        u4Byte          length
        );
 void
 ODM_FreeMemory(
        PDM_ODM_T       pDM_Odm,
-       void *          pPtr,
+       void            *pPtr,
        u4Byte          length
        );
 
 s4Byte ODM_CompareMemory(
        PDM_ODM_T       pDM_Odm,
-       void *           pBuf1,
-       void *           pBuf2,
-       u4Byte          length
+       void            *pBuf1,
+       void            *pBuf2,
+       u4Byte          length
        );
 
 //
@@ -265,11 +241,11 @@ ODM_ReleaseSpinLock(
 //
 void
 ODM_InitializeWorkItem(
-       PDM_ODM_T                                       pDM_Odm,
-       PRT_WORK_ITEM                           pRtWorkItem,
+       PDM_ODM_T                       pDM_Odm,
+       PRT_WORK_ITEM                   pRtWorkItem,
        RT_WORKITEM_CALL_BACK           RtWorkItemCallback,
-       void *                                          pContext,
-       const char*                                     szID
+       void                            *pContext,
+       const char                      *szID
        );
 
 void