staging: rtl8188eu: Rework function PHY_SetBWMode8188E()
authornavin patidar <navin.patidar@gmail.com>
Sun, 31 Aug 2014 06:44:29 +0000 (12:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Aug 2014 19:57:41 +0000 (12:57 -0700)
Rename CamelCase variables and function name.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
drivers/staging/rtl8188eu/hal/rtl8188e_phycfg.c
drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h
drivers/staging/rtl8188eu/include/phy.h

index cc2988cd817b5a0a5642c43eca61fa5c8264ae01..f41e83d819879b3ea6d0c71ef8e73472c9101e99 100644 (file)
@@ -221,7 +221,7 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
 
        pHalFunc->read_chip_version = &rtl8188e_read_chip_version;
 
-       pHalFunc->set_bwmode_handler = &PHY_SetBWMode8188E;
+       pHalFunc->set_bwmode_handler = &phy_set_bw_mode;
        pHalFunc->set_channel_handler = &PHY_SwChnl8188E;
 
        pHalFunc->hal_dm_watchdog = &rtl8188e_HalDmWatchDog;
index 85e05ae017741348c1b8cc771670723ddbf2dc38..b1ff8922aafd527be703d36042f49ee22eb325a5 100644 (file)
@@ -319,34 +319,19 @@ static void phy_set_bw_mode_callback(struct adapter *adapt)
        }
 }
 
- /*-----------------------------------------------------------------------------
- * Function:   SetBWMode8190Pci()
- *
- * Overview:  This function is export to "HalCommon" moudule
- *
- * Input:              struct adapter *Adapter
- *                     enum ht_channel_width Bandwidth 20M or 40M
- *
- * Output:      NONE
- *
- * Return:      NONE
- *
- * Note:               We do not take j mode into consideration now
- *---------------------------------------------------------------------------*/
-void PHY_SetBWMode8188E(struct adapter *Adapter, enum ht_channel_width Bandwidth,      /*  20M or 40M */
-                       unsigned char   Offset)         /*  Upper, Lower, or Don't care */
+void phy_set_bw_mode(struct adapter *adapt, enum ht_channel_width bandwidth,
+                    unsigned char offset)
 {
-       struct hal_data_8188e   *pHalData = GET_HAL_DATA(Adapter);
-       enum ht_channel_width tmpBW = pHalData->CurrentChannelBW;
-
-       pHalData->CurrentChannelBW = Bandwidth;
+       struct hal_data_8188e   *hal_data = GET_HAL_DATA(adapt);
+       enum ht_channel_width tmp_bw = hal_data->CurrentChannelBW;
 
-       pHalData->nCur40MhzPrimeSC = Offset;
+       hal_data->CurrentChannelBW = bandwidth;
+       hal_data->nCur40MhzPrimeSC = offset;
 
-       if ((!Adapter->bDriverStopped) && (!Adapter->bSurpriseRemoved))
-               phy_set_bw_mode_callback(Adapter);
+       if ((!adapt->bDriverStopped) && (!adapt->bSurpriseRemoved))
+               phy_set_bw_mode_callback(adapt);
        else
-               pHalData->CurrentChannelBW = tmpBW;
+               hal_data->CurrentChannelBW = tmp_bw;
 }
 
 static void phy_sw_chnl_callback(struct adapter *adapt, u8 channel)
index 18359333779b2fe4ecea4b4eb4d3bac82f33202d..f8bc63cb2e9bf6c46357bdce5c2a15eae3023e8f 100644 (file)
@@ -207,10 +207,6 @@ void PHY_GetTxPowerLevel8188E(struct adapter *adapter, u32 *powerlevel);
 
 void PHY_ScanOperationBackup8188E(struct adapter *Adapter, u8 Operation);
 
-/*  Switch bandwidth for 8192S */
-void PHY_SetBWMode8188E(struct adapter *adapter,
-                       enum ht_channel_width chnlwidth, unsigned char offset);
-
 /*  channel switch related funciton */
 void PHY_SwChnl8188E(struct adapter *adapter, u8 channel);
 /*  Call after initialization */
index 853d1e3cefd5dc72df39fdc3516b88be16943696..5b939871ffbd7f2c9ffb10eae528b436fbc91ac6 100644 (file)
@@ -10,3 +10,6 @@ void phy_set_rf_reg(struct adapter *adapt, enum rf_radio_path rf_path,
                    u32 reg_addr, u32 bit_mask, u32 data);
 
 void phy_set_tx_power_level(struct adapter *adapt, u8 channel);
+
+void phy_set_bw_mode(struct adapter *adapt, enum ht_channel_width bandwidth,
+                    unsigned char offset);