staging: rtl8188eu: Rework function rtl8188e_PHY_RF6052SetBandwidth()
authornavin patidar <navin.patidar@gmail.com>
Sun, 31 Aug 2014 08:38:21 +0000 (14:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 Aug 2014 19:58:40 +0000 (12:58 -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/phy.c
drivers/staging/rtl8188eu/hal/rtl8188e_rf6052.c
drivers/staging/rtl8188eu/include/rf.h [new file with mode: 0644]

index 5041da0f7c8077a578e836838157428e18e82b2c..b67b91ed960f5b4862263447ec8365fa94be2fd1 100644 (file)
@@ -23,6 +23,7 @@
 #include <drv_types.h>
 #include <rtw_iol.h>
 #include <rtl8188e_hal.h>
+#include <rf.h>
 
 #define MAX_PRECMD_CNT 16
 #define MAX_RFDEPENDCMD_CNT 16
@@ -312,7 +313,7 @@ static void phy_set_bw_mode_callback(struct adapter *adapt)
        case RF_PSEUDO_11N:
                break;
        case RF_6052:
-               rtl8188e_PHY_RF6052SetBandwidth(adapt, hal_data->CurrentChannelBW);
+               rtl88eu_phy_rf6052_set_bandwidth(adapt, hal_data->CurrentChannelBW);
                break;
        default:
                break;
index bcee67a14a719c547626e43ab9cb098180846376..bd90068990679ff9e488fa7750acfba80e9d1bb7 100644 (file)
  * this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  *
- *
  ******************************************************************************/
-/******************************************************************************
- *
- *
- * Module:     rtl8192c_rf6052.c       ( Source C File)
- *
- * Note:       Provide RF 6052 series relative API.
- *
- * Function:
- *
- * Export:
- *
- * Abbrev:
- *
- * History:
- * Data                        Who             Remark
- *
- * 09/25/2008  MHC             Create initial version.
- * 11/05/2008  MHC             Add API for tw power setting.
- *
- *
-******************************************************************************/
-
-#define _RTL8188E_RF6052_C_
 
 #include <osdep_service.h>
 #include <drv_types.h>
 #include <phy.h>
 #include <rtl8188e_hal.h>
 
-/*-----------------------------------------------------------------------------
- * Function:    PHY_RF6052SetBandwidth()
- *
- * Overview:    This function is called by SetBWModeCallback8190Pci() only
- *
- * Input:       struct adapter *Adapter
- *                     WIRELESS_BANDWIDTH_E    Bandwidth       20M or 40M
- *
- * Output:      NONE
- *
- * Return:      NONE
- *
- * Note:               For RF type 0222D
- *---------------------------------------------------------------------------*/
-void rtl8188e_PHY_RF6052SetBandwidth(struct adapter *Adapter,
-                                    enum ht_channel_width Bandwidth)
+void rtl88eu_phy_rf6052_set_bandwidth(struct adapter *adapt,
+                                     enum ht_channel_width bandwidth)
 {
-       struct hal_data_8188e *pHalData = GET_HAL_DATA(Adapter);
+       struct hal_data_8188e *hal_data = GET_HAL_DATA(adapt);
 
-       switch (Bandwidth) {
+       switch (bandwidth) {
        case HT_CHANNEL_WIDTH_20:
-               pHalData->RfRegChnlVal[0] = ((pHalData->RfRegChnlVal[0] & 0xfffff3ff) | BIT(10) | BIT(11));
-               phy_set_rf_reg(Adapter, RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]);
+               hal_data->RfRegChnlVal[0] = ((hal_data->RfRegChnlVal[0] &
+                                             0xfffff3ff) | BIT(10) | BIT(11));
+               phy_set_rf_reg(adapt, RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask,
+                              hal_data->RfRegChnlVal[0]);
                break;
        case HT_CHANNEL_WIDTH_40:
-               pHalData->RfRegChnlVal[0] = ((pHalData->RfRegChnlVal[0] & 0xfffff3ff) | BIT(10));
-               phy_set_rf_reg(Adapter, RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask, pHalData->RfRegChnlVal[0]);
+               hal_data->RfRegChnlVal[0] = ((hal_data->RfRegChnlVal[0] &
+                                             0xfffff3ff) | BIT(10));
+               phy_set_rf_reg(adapt, RF_PATH_A, RF_CHNLBW, bRFRegOffsetMask,
+                              hal_data->RfRegChnlVal[0]);
                break;
        default:
                break;
diff --git a/drivers/staging/rtl8188eu/include/rf.h b/drivers/staging/rtl8188eu/include/rf.h
new file mode 100644 (file)
index 0000000..ca0d28d
--- /dev/null
@@ -0,0 +1,2 @@
+void rtl88eu_phy_rf6052_set_bandwidth(struct adapter *adapt,
+                                     enum ht_channel_width bandwidth);
This page took 0.047696 seconds and 5 git commands to generate.