Staging: w35und: remove atomic op wrappers
[cascardo/linux.git] / drivers / staging / winbond / wbhal_s.h
index 2ee3f0f..4eeb089 100644 (file)
@@ -445,12 +445,12 @@ typedef struct _HW_DATA_T
        //=======================================================================================
        // For USB driver, hal need more variables. Due to
        //      1. NDIS-WDM operation
-       //      2. The SME, MLME and OLD MDS need Adapter structure, but the driver under HAL doesn't
+       //      2. The SME, MLME and OLD MDS need adapter structure, but the driver under HAL doesn't
        //              have that parameter when receiving and indicating packet.
-       //              The MDS must input the Adapter pointer as the second parameter of hal_init_hardware.
+       //              The MDS must input the adapter pointer as the second parameter of hal_init_hardware.
        //              The function usage is different than PCI driver.
        //=======================================================================================
-       void* Adapter;
+       void* adapter;
 
        //===============================================
        // Definition for MAC address
@@ -506,11 +506,11 @@ typedef struct _HW_DATA_T
        // Variable for each module
        //========================================================================
        WBUSB           WbUsb; // Need WbUsb.h
-       WB35REG         Wb35Reg; // Need Wb35Reg.h
+       struct wb35_reg reg; // Need Wb35Reg.h
        WB35TX          Wb35Tx; // Need Wb35Tx.h
        WB35RX          Wb35Rx; // Need Wb35Rx.h
 
-       OS_TIMER        LEDTimer;// For LED
+       struct timer_list       LEDTimer;// For LED
 
        u32             LEDpoint;// For LED
 
@@ -570,7 +570,7 @@ typedef struct _HW_DATA_T
        u32             RxByteCountLast;
        u32             TxByteCountLast;
 
-       s32             SurpriseRemoveCount;
+       atomic_t        SurpriseRemoveCount;
 
        // For global timer
        u32             time_count;//TICK_TIME_100ms 1 = 100ms