Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6655 - add parameter names

Fix checkpatch.pl warnings of the form "function definition argument
'foo' should also have an identifier name" in header files.

Signed-off-by: Derek Robson <robsonde@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Derek Robson and committed by
Greg Kroah-Hartman
24c8bd8f 178f5f0f

+57 -67
+15 -15
drivers/staging/vt6655/card.h
··· 64 64 struct vnt_private; 65 65 66 66 void CARDvSetRSPINF(struct vnt_private *priv, u8 bb_type); 67 - void CARDvUpdateBasicTopRate(struct vnt_private *); 68 - bool CARDbIsOFDMinBasicRate(struct vnt_private *); 69 - void CARDvSetLoopbackMode(struct vnt_private *, unsigned short wLoopbackMode); 70 - bool CARDbSoftwareReset(struct vnt_private *); 71 - void CARDvSetFirstNextTBTT(struct vnt_private *, 67 + void CARDvUpdateBasicTopRate(struct vnt_private *priv); 68 + bool CARDbIsOFDMinBasicRate(struct vnt_private *priv); 69 + void CARDvSetLoopbackMode(struct vnt_private *priv, unsigned short wLoopbackMode); 70 + bool CARDbSoftwareReset(struct vnt_private *priv); 71 + void CARDvSetFirstNextTBTT(struct vnt_private *priv, 72 72 unsigned short wBeaconInterval); 73 - void CARDvUpdateNextTBTT(struct vnt_private *, u64 qwTSF, 73 + void CARDvUpdateNextTBTT(struct vnt_private *priv, u64 qwTSF, 74 74 unsigned short wBeaconInterval); 75 - bool CARDbGetCurrentTSF(struct vnt_private *, u64 *pqwCurrTSF); 75 + bool CARDbGetCurrentTSF(struct vnt_private *priv, u64 *pqwCurrTSF); 76 76 u64 CARDqGetNextTBTT(u64 qwTSF, unsigned short wBeaconInterval); 77 77 u64 CARDqGetTSFOffset(unsigned char byRxRate, u64 qwTSF1, u64 qwTSF2); 78 - unsigned char CARDbyGetPktType(struct vnt_private *); 79 - void CARDvSafeResetTx(struct vnt_private *); 80 - void CARDvSafeResetRx(struct vnt_private *); 81 - bool CARDbRadioPowerOff(struct vnt_private *); 82 - bool CARDbRadioPowerOn(struct vnt_private *); 83 - bool CARDbSetPhyParameter(struct vnt_private *, u8); 84 - bool CARDbUpdateTSF(struct vnt_private *, unsigned char byRxRate, 78 + unsigned char CARDbyGetPktType(struct vnt_private *priv); 79 + void CARDvSafeResetTx(struct vnt_private *priv); 80 + void CARDvSafeResetRx(struct vnt_private *priv); 81 + bool CARDbRadioPowerOff(struct vnt_private *priv); 82 + bool CARDbRadioPowerOn(struct vnt_private *priv); 83 + bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type); 84 + bool CARDbUpdateTSF(struct vnt_private *priv, unsigned char byRxRate, 85 85 u64 qwBSSTimestamp); 86 - bool CARDbSetBeaconPeriod(struct vnt_private *, unsigned short wBeaconInterval); 86 + bool CARDbSetBeaconPeriod(struct vnt_private *priv, unsigned short wBeaconInterval); 87 87 88 88 #endif /* __CARD_H__ */
+2 -2
drivers/staging/vt6655/channel.h
··· 21 21 22 22 #include "card.h" 23 23 24 - void vnt_init_bands(struct vnt_private *); 24 + void vnt_init_bands(struct vnt_private *priv); 25 25 26 - bool set_channel(struct vnt_private *, struct ieee80211_channel *); 26 + bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch); 27 27 28 28 #endif /* _CHANNEL_H_ */
+29 -29
drivers/staging/vt6655/mac.h
··· 885 885 #define MACvSetRFLE_LatchBase(iobase) \ 886 886 MACvWordRegBitsOn(iobase, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_RFLEOPT) 887 887 888 - bool MACbIsRegBitsOn(struct vnt_private *, unsigned char byRegOfs, 888 + bool MACbIsRegBitsOn(struct vnt_private *priv, unsigned char byRegOfs, 889 889 unsigned char byTestBits); 890 - bool MACbIsRegBitsOff(struct vnt_private *, unsigned char byRegOfs, 890 + bool MACbIsRegBitsOff(struct vnt_private *priv, unsigned char byRegOfs, 891 891 unsigned char byTestBits); 892 892 893 - bool MACbIsIntDisable(struct vnt_private *); 893 + bool MACbIsIntDisable(struct vnt_private *priv); 894 894 895 - void MACvSetShortRetryLimit(struct vnt_private *, unsigned char byRetryLimit); 895 + void MACvSetShortRetryLimit(struct vnt_private *priv, unsigned char byRetryLimit); 896 896 897 - void MACvSetLongRetryLimit(struct vnt_private *, unsigned char byRetryLimit); 898 - void MACvGetLongRetryLimit(struct vnt_private *, 897 + void MACvSetLongRetryLimit(struct vnt_private *priv, unsigned char byRetryLimit); 898 + void MACvGetLongRetryLimit(struct vnt_private *priv, 899 899 unsigned char *pbyRetryLimit); 900 900 901 - void MACvSetLoopbackMode(struct vnt_private *, unsigned char byLoopbackMode); 901 + void MACvSetLoopbackMode(struct vnt_private *priv, unsigned char byLoopbackMode); 902 902 903 - void MACvSaveContext(struct vnt_private *, unsigned char *pbyCxtBuf); 904 - void MACvRestoreContext(struct vnt_private *, unsigned char *pbyCxtBuf); 903 + void MACvSaveContext(struct vnt_private *priv, unsigned char *pbyCxtBuf); 904 + void MACvRestoreContext(struct vnt_private *priv, unsigned char *pbyCxtBuf); 905 905 906 - bool MACbSoftwareReset(struct vnt_private *); 907 - bool MACbSafeSoftwareReset(struct vnt_private *); 908 - bool MACbSafeRxOff(struct vnt_private *); 909 - bool MACbSafeTxOff(struct vnt_private *); 910 - bool MACbSafeStop(struct vnt_private *); 911 - bool MACbShutdown(struct vnt_private *); 912 - void MACvInitialize(struct vnt_private *); 913 - void MACvSetCurrRx0DescAddr(struct vnt_private *, 906 + bool MACbSoftwareReset(struct vnt_private *priv); 907 + bool MACbSafeSoftwareReset(struct vnt_private *priv); 908 + bool MACbSafeRxOff(struct vnt_private *priv); 909 + bool MACbSafeTxOff(struct vnt_private *priv); 910 + bool MACbSafeStop(struct vnt_private *priv); 911 + bool MACbShutdown(struct vnt_private *priv); 912 + void MACvInitialize(struct vnt_private *priv); 913 + void MACvSetCurrRx0DescAddr(struct vnt_private *priv, 914 914 u32 curr_desc_addr); 915 - void MACvSetCurrRx1DescAddr(struct vnt_private *, 915 + void MACvSetCurrRx1DescAddr(struct vnt_private *priv, 916 916 u32 curr_desc_addr); 917 - void MACvSetCurrTXDescAddr(int iTxType, struct vnt_private *, 917 + void MACvSetCurrTXDescAddr(int iTxType, struct vnt_private *priv, 918 918 u32 curr_desc_addr); 919 - void MACvSetCurrTx0DescAddrEx(struct vnt_private *, 919 + void MACvSetCurrTx0DescAddrEx(struct vnt_private *priv, 920 920 u32 curr_desc_addr); 921 - void MACvSetCurrAC0DescAddrEx(struct vnt_private *, 921 + void MACvSetCurrAC0DescAddrEx(struct vnt_private *priv, 922 922 u32 curr_desc_addr); 923 - void MACvSetCurrSyncDescAddrEx(struct vnt_private *, 923 + void MACvSetCurrSyncDescAddrEx(struct vnt_private *priv, 924 924 u32 curr_desc_addr); 925 - void MACvSetCurrATIMDescAddrEx(struct vnt_private *, 925 + void MACvSetCurrATIMDescAddrEx(struct vnt_private *priv, 926 926 u32 curr_desc_addr); 927 - void MACvTimer0MicroSDelay(struct vnt_private *, unsigned int uDelay); 928 - void MACvOneShotTimer1MicroSec(struct vnt_private *, unsigned int uDelayTime); 927 + void MACvTimer0MicroSDelay(struct vnt_private *priv, unsigned int uDelay); 928 + void MACvOneShotTimer1MicroSec(struct vnt_private *priv, unsigned int uDelayTime); 929 929 930 - void MACvSetMISCFifo(struct vnt_private *, unsigned short wOffset, 930 + void MACvSetMISCFifo(struct vnt_private *priv, unsigned short wOffset, 931 931 u32 dwData); 932 932 933 - bool MACbPSWakeup(struct vnt_private *); 933 + bool MACbPSWakeup(struct vnt_private *priv); 934 934 935 - void MACvSetKeyEntry(struct vnt_private *, unsigned short wKeyCtl, 935 + void MACvSetKeyEntry(struct vnt_private *priv, unsigned short wKeyCtl, 936 936 unsigned int uEntryIdx, unsigned int uKeyIdx, 937 937 unsigned char *pbyAddr, u32 *pdwKey, 938 938 unsigned char byLocalID); 939 - void MACvDisableKeyEntry(struct vnt_private *, unsigned int uEntryIdx); 939 + void MACvDisableKeyEntry(struct vnt_private *priv, unsigned int uEntryIdx); 940 940 941 941 #endif /* __MAC_H__ */
+3 -13
drivers/staging/vt6655/power.h
··· 31 31 #define PS_FAST_INTERVAL 1 /* Fast power saving listen interval */ 32 32 #define PS_MAX_INTERVAL 4 /* MAX power saving listen interval */ 33 33 34 - void 35 - PSvDisablePowerSaving( 36 - struct vnt_private * 37 - ); 34 + void PSvDisablePowerSaving(struct vnt_private *priv); 38 35 39 - void 40 - PSvEnablePowerSaving( 41 - struct vnt_private *, 42 - unsigned short wListenInterval 43 - ); 36 + void PSvEnablePowerSaving(struct vnt_private *priv, unsigned short wListenInterval); 44 37 45 - bool 46 - PSbIsNextTBTTWakeUp( 47 - struct vnt_private * 48 - ); 38 + bool PSbIsNextTBTTWakeUp(struct vnt_private *priv); 49 39 50 40 #endif /* __POWER_H__ */
+8 -8
drivers/staging/vt6655/rf.h
··· 68 68 69 69 /*--------------------- Export Functions --------------------------*/ 70 70 71 - bool IFRFbWriteEmbedded(struct vnt_private *, unsigned long dwData); 72 - bool RFbSelectChannel(struct vnt_private *, unsigned char byRFType, u16); 71 + bool IFRFbWriteEmbedded(struct vnt_private *priv, unsigned long dwData); 72 + bool RFbSelectChannel(struct vnt_private *priv, unsigned char byRFType, u16 byChannel); 73 73 bool RFbInit( 74 - struct vnt_private * 74 + struct vnt_private *priv 75 75 ); 76 - bool RFvWriteWakeProgSyn(struct vnt_private *, unsigned char byRFType, u16); 77 - bool RFbSetPower(struct vnt_private *, unsigned int rate, u16); 76 + bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, u16 uChannel); 77 + bool RFbSetPower(struct vnt_private *priv, unsigned int rate, u16 uCH); 78 78 bool RFbRawSetPower( 79 - struct vnt_private *, 79 + struct vnt_private *priv, 80 80 unsigned char byPwr, 81 81 unsigned int rate 82 82 ); 83 83 84 84 void 85 85 RFvRSSITodBm( 86 - struct vnt_private *, 86 + struct vnt_private *priv, 87 87 unsigned char byCurrRSSI, 88 88 long *pldBm 89 89 ); 90 90 91 91 /* {{ RobertYu: 20050104 */ 92 - bool RFbAL7230SelectChannelPostProcess(struct vnt_private *, u16, u16); 92 + bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv, u16 byOldChannel, u16 byNewChannel); 93 93 /* }} RobertYu */ 94 94 95 95 #endif /* __RF_H__ */