diff options
author | Xenia Ragiadakou <burzalodowa@gmail.com> | 2013-06-25 02:28:59 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-24 16:44:59 -0700 |
commit | 2703d1b15b7b7f3ec9b639a720affdc3a5067826 (patch) | |
tree | 8349d583a92c4ea9ae4bc7a44b4c7e7405048635 /drivers | |
parent | 19e918f0a76cde11074f457d5d9ba0216576e5f5 (diff) |
staging: rtl8192u: fix comments in r819xU_phy.h
This patch fixes the comments by:
- changing them to follow the kernel coding style
- removing commented-out code
- removing comments that refer developer's name
Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8192u/r819xU_phy.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/drivers/staging/rtl8192u/r819xU_phy.h b/drivers/staging/rtl8192u/r819xU_phy.h index 445a5c0c167d..74405a324406 100644 --- a/drivers/staging/rtl8192u/r819xU_phy.h +++ b/drivers/staging/rtl8192u/r819xU_phy.h @@ -1,7 +1,7 @@ #ifndef _R819XU_PHY_H #define _R819XU_PHY_H -/* Channel switch:The size of command tables for switch channel*/ +/* Channel switch: The size of command tables for switch channel */ #define MAX_PRECMD_CNT 16 #define MAX_RFDEPENDCMD_CNT 16 #define MAX_POSTCMD_CNT 16 @@ -16,7 +16,7 @@ typedef enum _SwChnlCmdID { CmdID_RF_WriteReg, } SwChnlCmdID; -/*--------------------------------Define structure--------------------------------*/ +/* -----------------------Define structure---------------------- */ /* 1. Switch channel related */ typedef struct _SwChnlCmd { SwChnlCmdID CmdID; @@ -38,15 +38,15 @@ typedef enum _HW90_BLOCK { HW90_BLOCK_PHY0 = 1, HW90_BLOCK_PHY1 = 2, HW90_BLOCK_RF = 3, - HW90_BLOCK_MAXIMUM = 4, // Never use this + HW90_BLOCK_MAXIMUM = 4, /* Never use this */ } HW90_BLOCK_E, *PHW90_BLOCK_E; typedef enum _RF90_RADIO_PATH { - RF90_PATH_A = 0, //Radio Path A - RF90_PATH_B = 1, //Radio Path B - RF90_PATH_C = 2, //Radio Path C - RF90_PATH_D = 3, //Radio Path D - RF90_PATH_MAX //Max RF number 92 support + RF90_PATH_A = 0, /* Radio Path A */ + RF90_PATH_B = 1, /* Radio Path B */ + RF90_PATH_C = 2, /* Radio Path C */ + RF90_PATH_D = 3, /* Radio Path D */ + RF90_PATH_MAX /* Max RF number 92 support */ } RF90_RADIO_PATH_E, *PRF90_RADIO_PATH_E; #define bMaskByte0 0xff @@ -57,19 +57,14 @@ typedef enum _RF90_RADIO_PATH { #define bMaskLWord 0x0000ffff #define bMaskDWord 0xffffffff -//extern u32 rtl8192_CalculateBitShift(u32 dwBitMask); extern u8 rtl8192_phy_CheckIsLegalRFPath(struct net_device *dev, u32 eRFPath); extern void rtl8192_setBBreg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask, u32 dwData); extern u32 rtl8192_QueryBBReg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask); -//extern u32 rtl8192_phy_RFSerialRead(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u32 Offset); -//extern void rtl8192_phy_RFSerialWrite(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u32 Offset, u32 Data); extern void rtl8192_phy_SetRFReg(struct net_device *dev, RF90_RADIO_PATH_E eRFPath, u32 RegAddr, u32 BitMask, u32 Data); extern u32 rtl8192_phy_QueryRFReg(struct net_device *dev, RF90_RADIO_PATH_E eRFPath, u32 RegAddr, u32 BitMask); extern void rtl8192_phy_configmac(struct net_device *dev); extern void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType); -//extern void rtl8192_InitBBRFRegDef(struct net_device* dev); extern u8 rtl8192_phy_checkBBAndRF(struct net_device *dev, HW90_BLOCK_E CheckBlock, RF90_RADIO_PATH_E eRFPath); -//extern void rtl8192_BB_Config_ParaFile(struct net_device* dev); extern void rtl8192_BBConfig(struct net_device *dev); extern void rtl8192_phy_getTxPower(struct net_device *dev); extern void rtl8192_phy_setTxPower(struct net_device *dev, u8 channel); @@ -82,7 +77,6 @@ extern void rtl8192_SetBWMode(struct net_device *dev, HT_CHANNEL_WIDTH Bandwidth extern void rtl8192_SwChnl_WorkItem(struct net_device *dev); void rtl8192_SetBWModeWorkItem(struct net_device *dev); extern bool rtl8192_SetRFPowerState(struct net_device *dev, RT_RF_POWER_STATE eRFPowerState); -//added by amy extern void InitialGain819xUsb(struct net_device *dev, u8 Operation); extern void InitialGainOperateWorkItemCallBack(struct work_struct *work); |