]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: r8188eu: Cleanup of include/hal_intf.h
authorLarry Finger <Larry.Finger@lwfinger.net>
Sun, 22 Dec 2013 23:36:56 +0000 (17:36 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 03:18:08 +0000 (19:18 -0800)
This driver only handles RTL8188EU with USB interface, thus several hardware
defines and macros can be removed.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
drivers/staging/rtl8188eu/hal/rtl8188e_mp.c
drivers/staging/rtl8188eu/hal/usb_ops_linux.c
drivers/staging/rtl8188eu/include/drv_types.h
drivers/staging/rtl8188eu/include/hal_intf.h
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index 1e7c926d555ef584ef600b963756acccb06c5180..4c934e2e0911fc785d3feebf7224730ab826bd95 100644 (file)
@@ -63,8 +63,6 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter)
 
        ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_PLATFORM, ODM_CE);
 
-       ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_INTERFACE, Adapter->interface_type);/* RTL871X_HCI_TYPE */
-
        ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_IC_TYPE, ODM_RTL8188E);
 
        fab_ver = ODM_TSMC;
index e5dc0361092e47f8fa215a40e88c1c27de73f996..3d0e6c9e0310554cebc929779ed64341308c7a94 100644 (file)
@@ -652,12 +652,10 @@ void Hal_SetSingleToneTx(struct adapter *pAdapter, u8 bStart)
                /*  Start Single Tone. */
                RT_TRACE(_module_mp_, _drv_alert_, ("SetSingleToneTx: test start\n"));
                /*  <20120326, Kordan> To amplify the power of tone for Xtal calibration. (asked by Edlu) */
-               if (IS_HARDWARE_TYPE_8188E(pAdapter)) {
-                       reg58 = PHY_QueryRFReg(pAdapter, RF_PATH_A, LNA_Low_Gain_3, bRFRegOffsetMask);
-                       reg58 &= 0xFFFFFFF0;
-                       reg58 += 2;
-                       PHY_SetRFReg(pAdapter, RF_PATH_A, LNA_Low_Gain_3, bRFRegOffsetMask, reg58);
-               }
+               reg58 = PHY_QueryRFReg(pAdapter, RF_PATH_A, LNA_Low_Gain_3, bRFRegOffsetMask);
+               reg58 &= 0xFFFFFFF0;
+               reg58 += 2;
+               PHY_SetRFReg(pAdapter, RF_PATH_A, LNA_Low_Gain_3, bRFRegOffsetMask, reg58);
                PHY_SetBBReg(pAdapter, rFPGA0_RFMOD, bCCKEn, 0x0);
                PHY_SetBBReg(pAdapter, rFPGA0_RFMOD, bOFDMEn, 0x0);
 
@@ -687,11 +685,9 @@ void Hal_SetSingleToneTx(struct adapter *pAdapter, u8 bStart)
 
                /*  <20120326, Kordan> To amplify the power of tone for Xtal calibration. (asked by Edlu) */
                /*  <20120326, Kordan> Only in single tone mode. (asked by Edlu) */
-               if (IS_HARDWARE_TYPE_8188E(pAdapter)) {
-                       reg58 = PHY_QueryRFReg(pAdapter, RF_PATH_A, LNA_Low_Gain_3, bRFRegOffsetMask);
-                       reg58 &= 0xFFFFFFF0;
-                       PHY_SetRFReg(pAdapter, RF_PATH_A, LNA_Low_Gain_3, bRFRegOffsetMask, reg58);
-               }
+               reg58 = PHY_QueryRFReg(pAdapter, RF_PATH_A, LNA_Low_Gain_3, bRFRegOffsetMask);
+               reg58 &= 0xFFFFFFF0;
+               PHY_SetRFReg(pAdapter, RF_PATH_A, LNA_Low_Gain_3, bRFRegOffsetMask, reg58);
                write_bbreg(pAdapter, rFPGA0_RFMOD, bCCKEn, 0x1);
                write_bbreg(pAdapter, rFPGA0_RFMOD, bOFDMEn, 0x1);
                if (is92C) {
index 787763ef74c6707d832c34edf0e8ed443cdb3543..31ae21a54c92a24a6e4504267bbb692bc13cdd11 100644 (file)
@@ -723,6 +723,5 @@ void rtl8188eu_set_intf_ops(struct _io_ops  *pops)
 void rtl8188eu_set_hw_type(struct adapter *adapt)
 {
        adapt->chip_type = RTL8188E;
-       adapt->HardwareType = HARDWARE_TYPE_RTL8188EU;
        DBG_88E("CHIP TYPE: RTL8188E\n");
 }
index 00a49ef26214f8cad11bb3efa1182fb99cfb2505..a492a1c547aee73375809fe338c8024bc4d0fe9a 100644 (file)
@@ -225,8 +225,6 @@ struct adapter {
        int     pid[3];/* process id from UI, 0:wps, 1:hostapd, 2:dhcpcd */
        int     bDongle;/* build-in module or external dongle */
        u16     chip_type;
-       u16     HardwareType;
-       u16     interface_type;/* USB,SDIO,SPI,PCI */
 
        struct dvobj_priv *dvobj;
        struct  mlme_priv mlmepriv;
index 439c3c941ba199f598e17b4be131b4dbb0493091..c274b349f61e32543936e1c455834114cbb20d8c 100644 (file)
@@ -286,39 +286,10 @@ enum rt_eeprom_type {
 #define RF_CHANGE_BY_SW                BIT31
 
 enum hardware_type {
-       HARDWARE_TYPE_RTL8180,
-       HARDWARE_TYPE_RTL8185,
-       HARDWARE_TYPE_RTL8187,
-       HARDWARE_TYPE_RTL8188,
-       HARDWARE_TYPE_RTL8190P,
-       HARDWARE_TYPE_RTL8192E,
-       HARDWARE_TYPE_RTL819xU,
-       HARDWARE_TYPE_RTL8192SE,
-       HARDWARE_TYPE_RTL8192SU,
-       HARDWARE_TYPE_RTL8192CE,
-       HARDWARE_TYPE_RTL8192CU,
-       HARDWARE_TYPE_RTL8192DE,
-       HARDWARE_TYPE_RTL8192DU,
-       HARDWARE_TYPE_RTL8723AE,
-       HARDWARE_TYPE_RTL8723AU,
-       HARDWARE_TYPE_RTL8723AS,
-       HARDWARE_TYPE_RTL8188EE,
        HARDWARE_TYPE_RTL8188EU,
-       HARDWARE_TYPE_RTL8188ES,
        HARDWARE_TYPE_MAX,
 };
 
-/*  RTL8188E Series */
-#define IS_HARDWARE_TYPE_8188EE(_Adapter)                      \
-(((struct adapter *)_Adapter)->HardwareType == HARDWARE_TYPE_RTL8188EE)
-#define IS_HARDWARE_TYPE_8188EU(_Adapter)                      \
-(((struct adapter *)_Adapter)->HardwareType == HARDWARE_TYPE_RTL8188EU)
-#define IS_HARDWARE_TYPE_8188ES(_Adapter)                      \
-(((struct adapter *)_Adapter)->HardwareType == HARDWARE_TYPE_RTL8188ES)
-#define        IS_HARDWARE_TYPE_8188E(_Adapter)        \
-(IS_HARDWARE_TYPE_8188EE(_Adapter) || IS_HARDWARE_TYPE_8188EU(_Adapter) || \
- IS_HARDWARE_TYPE_8188ES(_Adapter))
-
 #define GET_EEPROM_EFUSE_PRIV(adapter) (&adapter->eeprompriv)
 
 #define is_boot_from_eeprom(adapter) (adapter->eeprompriv.EepromOrEfuse)
index 35107fd758bc294659813eecb721d6c8ddef2cd1..594580b78caa5fd40fdc80608ed0cfa435fadc4f 100644 (file)
@@ -657,7 +657,6 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
        padapter->hw_init_mutex = &usb_drv->hw_init_mutex;
 
        /* step 1-1., decide the chip_type via vid/pid */
-       padapter->interface_type = RTW_USB;
        chip_by_usb_id(padapter, pdid);
 
        if (rtw_handle_dualmac(padapter, 1) != _SUCCESS)