staging: vt6655: Improve coding style in mac.h
cover staging: vt6655: Improve coding style in mac.h
Rename function and macro names and variable names to improve CamelCase which is not accepted by checkpatch. Delete unused function declarations. Delete unused functions. Convert functions to macros and make them static when possible.
Tested with vt6655 on mini PCI Module Transferred this patch over wlan connection of vt6655
Philipp Hortmann (9):
staging: vt6655: Remove declaration of s_vCalculateOFDMRParameter
staging: vt6655: Convert macro MACvSetBBType to function
staging: vt6655: Rename function MACvSetBBType
staging: vt6655: Rename macro MACvSelectPage0
staging: vt6655: Rename macro MACvSelectPage1
staging: vt6655: Replace macro MACvSetRFLE_LatchBase
staging: vt6655: Rename function MACbIsRegBitsOff
staging: vt6655: Delete function MACbIsIntDisable
staging: vt6655: Rename function MACvSetShortRetryLimit
drivers/staging/vt6655/baseband.c | 2 +- drivers/staging/vt6655/card.c | 22 +++++++---- drivers/staging/vt6655/channel.c | 4 +- drivers/staging/vt6655/device_main.c | 14 +++---- drivers/staging/vt6655/mac.c | 56 ++++++++-------------------- drivers/staging/vt6655/mac.h | 26 ++----------- 6 files changed, 43 insertions(+), 81 deletions(-)
Signature · 1 line
2.37.2
PATCH 1/9 staging: vt6655: Remove declaration of s_vCalculateOFDMRParameter
Remove declaration of s_vCalculateOFDMRParameter as definition follows just behind.
--- drivers/staging/vt6655/card.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/staging/vt6655/card.c +0 -4
@@ -55,10 +55,6 @@ static const unsigned short cwRXBCNTSFOff[MAX_RATE] = {/*--------------------- Static Functions --------------------------*/ -static void s_vCalculateOFDMRParameter (unsigned char rate,u8 bb_type, -unsigned char *pbyTxRate, -unsigned char *pbyRsvTime); -/*--------------------- Export Functions --------------------------*/ /*
Signature · 1 line
2.37.2
PATCH 2/9 staging: vt6655: Convert macro MACvSetBBType to function
In reply to Philipp HortmannConvert macro to static function. Multiline macros are not liked by kernel community. Rename variable dwOrgValue to reg_value and byTyp to mask to avoid CamelCase which is not accepted by checkpatch.pl. Change variable declaration to u32 as this improves readability.
--- drivers/staging/vt6655/card.c | 10 ++++++++++ drivers/staging/vt6655/mac.h | 9 --------- 2 files changed, 10 insertions(+), 9 deletions(-)
drivers/staging/vt6655/card.c +10 -0
@@ -55,6 +55,16 @@ static const unsigned short cwRXBCNTSFOff[MAX_RATE] = {/*--------------------- Static Functions --------------------------*/ +static void MACvSetBBType (void __iomem *iobase,u32 mask) +{ +u32 reg_value; + + reg_value =ioread32 (iobase +MAC_REG_ENCFG ); + reg_value = reg_value & ~ENCFG_BBTYPE_MASK ; + reg_value = reg_value | mask; +iowrite32 (reg_value, iobase +MAC_REG_ENCFG ); +} +/*--------------------- Export Functions --------------------------*/ /*
drivers/staging/vt6655/mac.h +0 -9
@@ -543,15 +543,6 @@#define MACvSelectPage1 (iobase) \ iowrite8(1, iobase + MAC_REG_PAGE1SEL) -#define MACvSetBBType (iobase, byTyp) \ -do { \ - unsigned long dwOrgValue; \ - dwOrgValue = ioread32(iobase + MAC_REG_ENCFG); \ - dwOrgValue = dwOrgValue & ~ENCFG_BBTYPE_MASK; \ - dwOrgValue = dwOrgValue | (unsigned long)byTyp; \ - iowrite32((u32)dwOrgValue, iobase + MAC_REG_ENCFG); \ -} while (0) -#define MACvSetRFLE_LatchBase (iobase) \ vt6655_mac_word_reg_bits_on(iobase, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_RFLEOPT)
Signature · 1 line
2.37.2
PATCH 3/9 staging: vt6655: Rename function MACvSetBBType
In reply to Philipp HortmannRename MACvSetBBType function to vt6655_mac_set_bb_type to avoid CamelCase which is not accepted by checkpatch.pl and to clean up namespace.
--- drivers/staging/vt6655/card.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/vt6655/card.c +4 -4
@@ -55,7 +55,7 @@ static const unsigned short cwRXBCNTSFOff[MAX_RATE] = {/*--------------------- Static Functions --------------------------*/ -static void MACvSetBBType (void __iomem *iobase,u32 mask) +static void vt6655_mac_set_bb_type (void __iomem *iobase,u32 mask) {u32 reg_value;
@@ -192,21 +192,21 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type)/* Set SIFS, DIFS, EIFS, SlotTime, CwMin */ if (bb_type ==BB_TYPE_11A ) { -MACvSetBBType (priv->port_offset,BB_TYPE_11A ); +vt6655_mac_set_bb_type (priv->port_offset,BB_TYPE_11A );bb_write_embedded (priv,0x88 ,0x03 ); bySlot =C_SLOT_SHORT ; bySIFS =C_SIFS_A ; byDIFS =C_SIFS_A +2 *C_SLOT_SHORT ; byCWMaxMin =0xA4 ; }else if (bb_type ==BB_TYPE_11B ) { -MACvSetBBType (priv->port_offset,BB_TYPE_11B ); +vt6655_mac_set_bb_type (priv->port_offset,BB_TYPE_11B );bb_write_embedded (priv,0x88 ,0x02 ); bySlot =C_SLOT_LONG ; bySIFS =C_SIFS_BG ; byDIFS =C_SIFS_BG +2 *C_SLOT_LONG ; byCWMaxMin =0xA5 ; }else {/* PK_TYPE_11GA & PK_TYPE_11GB */ -MACvSetBBType (priv->port_offset,BB_TYPE_11G ); +vt6655_mac_set_bb_type (priv->port_offset,BB_TYPE_11G );bb_write_embedded (priv,0x88 ,0x08 ); bySIFS =C_SIFS_BG ;
Signature · 1 line
2.37.2
PATCH 4/9 staging: vt6655: Rename macro MACvSelectPage0
In reply to Philipp HortmannRename MACvSelectPage0 macro to VT6655_MAC_SELECT_PAGE0 to avoid CamelCase which is not accepted by checkpatch.pl and to clean up namespace. Remove unnecessary line break.
--- drivers/staging/vt6655/card.c | 2 +- drivers/staging/vt6655/channel.c | 2 +- drivers/staging/vt6655/device_main.c | 6 +++--- drivers/staging/vt6655/mac.c | 4 ++-- drivers/staging/vt6655/mac.h | 3 +-- 5 files changed, 8 insertions(+), 9 deletions(-)
drivers/staging/vt6655/card.c +1 -1
@@ -643,7 +643,7 @@ void CARDvSetRSPINF(struct vnt_private *priv, u8 bb_type) &byRsvTime);iowrite16 (MAKEWORD (byTxRate, byRsvTime), priv->port_offset +MAC_REG_RSPINF_A_72 );/* Set to Page0 */ -MACvSelectPage0 (priv->port_offset); +VT6655_MAC_SELECT_PAGE0 (priv->port_offset);spin_unlock_irqrestore (&priv->lock, flags); }
drivers/staging/vt6655/channel.c +1 -1
@@ -121,7 +121,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)iowrite8 (priv->byCurPwr, priv->port_offset +MAC_REG_PWRCCK );RFbSetPower (priv,RATE_6M , priv->byCurrentCh);iowrite8 (priv->byCurPwr, priv->port_offset +MAC_REG_PWROFDM ); -MACvSelectPage0 (priv->port_offset); +VT6655_MAC_SELECT_PAGE0 (priv->port_offset);spin_unlock_irqrestore (&priv->lock, flags); }
drivers/staging/vt6655/device_main.c +3 -3
@@ -404,7 +404,7 @@ static void device_init_registers(struct vnt_private *priv)iowrite8 (MSRCTL1_TXPWR |MSRCTL1_CSAPAREN , priv->port_offset +MAC_REG_MSRCTL +1 ); -MACvSelectPage0 (priv->port_offset); +VT6655_MAC_SELECT_PAGE0 (priv->port_offset); }/* use relative tx timeout and 802.11i D4 */
@@ -1592,7 +1592,7 @@ static void vnt_configure(struct ieee80211_hw *hw,iowrite32 (0xffffffff , priv->port_offset +MAC_REG_MAR0 );iowrite32 (0xffffffff , priv->port_offset +MAC_REG_MAR0 +4 ); -MACvSelectPage0 (priv->port_offset); +VT6655_MAC_SELECT_PAGE0 (priv->port_offset); }else {MACvSelectPage1 (priv->port_offset);
@@ -1601,7 +1601,7 @@ static void vnt_configure(struct ieee80211_hw *hw,iowrite32 ((u32)(multicast >>32 ), priv->port_offset +MAC_REG_MAR0 +4 ); -MACvSelectPage0 (priv->port_offset); +VT6655_MAC_SELECT_PAGE0 (priv->port_offset); }spin_unlock_irqrestore (&priv->lock, flags);
drivers/staging/vt6655/mac.c +2 -2
@@ -219,7 +219,7 @@ void MACvSaveContext(struct vnt_private *priv, unsigned char *cxt_buf)memcpy_fromio (cxt_buf +MAC_MAX_CONTEXT_SIZE_PAGE0 , io_base,MAC_MAX_CONTEXT_SIZE_PAGE1 ); -MACvSelectPage0 (io_base); +VT6655_MAC_SELECT_PAGE0 (io_base); }/*
@@ -245,7 +245,7 @@ void MACvRestoreContext(struct vnt_private *priv, unsigned char *cxt_buf)memcpy_toio (io_base, cxt_buf +MAC_MAX_CONTEXT_SIZE_PAGE0 ,MAC_MAX_CONTEXT_SIZE_PAGE1 ); -MACvSelectPage0 (io_base); +VT6655_MAC_SELECT_PAGE0 (io_base);/* restore RCR,TCR,IMR... */ memcpy_toio(io_base + MAC_REG_RCR, cxt_buf + MAC_REG_RCR,
drivers/staging/vt6655/mac.h +1 -2
@@ -537,8 +537,7 @@/*--------------------- Export Macros ------------------------------*/ -#define MACvSelectPage0 (iobase) \ - iowrite8(0, iobase + MAC_REG_PAGE1SEL) +#define VT6655_MAC_SELECT_PAGE0 (iobase) iowrite8(0, iobase + MAC_REG_PAGE1SEL)#define MACvSelectPage1 (iobase) \ iowrite8(1, iobase + MAC_REG_PAGE1SEL)
Signature · 1 line
2.37.2
PATCH 5/9 staging: vt6655: Rename macro MACvSelectPage1
In reply to Philipp HortmannRename MACvSelectPage1 macro to VT6655_MAC_SELECT_PAGE1 to avoid CamelCase which is not accepted by checkpatch.pl and to clean up namespace. Remove unnecessary line break.
--- drivers/staging/vt6655/card.c | 2 +- drivers/staging/vt6655/channel.c | 2 +- drivers/staging/vt6655/device_main.c | 6 +++--- drivers/staging/vt6655/mac.c | 4 ++-- drivers/staging/vt6655/mac.h | 3 +-- 5 files changed, 8 insertions(+), 9 deletions(-)
drivers/staging/vt6655/card.c +1 -1
@@ -545,7 +545,7 @@ void CARDvSetRSPINF(struct vnt_private *priv, u8 bb_type)spin_lock_irqsave (&priv->lock, flags);/* Set to Page1 */ -MACvSelectPage1 (priv->port_offset); +VT6655_MAC_SELECT_PAGE1 (priv->port_offset);/* RSPINF_b_1 */ vnt_get_phy_field(priv, 14,
drivers/staging/vt6655/channel.c +1 -1
@@ -116,7 +116,7 @@ bool set_channel(struct vnt_private *priv, struct ieee80211_channel *ch)spin_lock_irqsave (&priv->lock, flags);/* set HW default power register */ -MACvSelectPage1 (priv->port_offset); +VT6655_MAC_SELECT_PAGE1 (priv->port_offset);RFbSetPower (priv,RATE_1M , priv->byCurrentCh);iowrite8 (priv->byCurPwr, priv->port_offset +MAC_REG_PWRCCK );RFbSetPower (priv,RATE_6M , priv->byCurrentCh);
drivers/staging/vt6655/device_main.c +3 -3
@@ -400,7 +400,7 @@ static void device_init_registers(struct vnt_private *priv) }if (priv->local_id >REV_ID_VT3253_B1 ) { -MACvSelectPage1 (priv->port_offset); +VT6655_MAC_SELECT_PAGE1 (priv->port_offset);iowrite8 (MSRCTL1_TXPWR |MSRCTL1_CSAPAREN , priv->port_offset +MAC_REG_MSRCTL +1 );
@@ -1587,14 +1587,14 @@ static void vnt_configure(struct ieee80211_hw *hw,spin_lock_irqsave (&priv->lock, flags);if (priv->mc_list_count >2 ) { -MACvSelectPage1 (priv->port_offset); +VT6655_MAC_SELECT_PAGE1 (priv->port_offset);iowrite32 (0xffffffff , priv->port_offset +MAC_REG_MAR0 );iowrite32 (0xffffffff , priv->port_offset +MAC_REG_MAR0 +4 );VT6655_MAC_SELECT_PAGE0 (priv->port_offset); }else { -MACvSelectPage1 (priv->port_offset); +VT6655_MAC_SELECT_PAGE1 (priv->port_offset); multicast =le64_to_cpu (multicast);iowrite32 ((u32 )multicast, priv->port_offset +MAC_REG_MAR0 );
drivers/staging/vt6655/mac.c +2 -2
@@ -213,7 +213,7 @@ void MACvSaveContext(struct vnt_private *priv, unsigned char *cxt_buf)/* read page0 register */ memcpy_fromio (cxt_buf, io_base,MAC_MAX_CONTEXT_SIZE_PAGE0 ); -MACvSelectPage1 (io_base); +VT6655_MAC_SELECT_PAGE1 (io_base);/* read page1 register */ memcpy_fromio(cxt_buf + MAC_MAX_CONTEXT_SIZE_PAGE0, io_base,
@@ -240,7 +240,7 @@ void MACvRestoreContext(struct vnt_private *priv, unsigned char *cxt_buf) {void __iomem *io_base = priv->port_offset; -MACvSelectPage1 (io_base); +VT6655_MAC_SELECT_PAGE1 (io_base);/* restore page1 */ memcpy_toio (io_base, cxt_buf +MAC_MAX_CONTEXT_SIZE_PAGE0 ,MAC_MAX_CONTEXT_SIZE_PAGE1 );
drivers/staging/vt6655/mac.h +1 -2
@@ -539,8 +539,7 @@#define VT6655_MAC_SELECT_PAGE0 (iobase) iowrite8(0, iobase + MAC_REG_PAGE1SEL) -#define MACvSelectPage1 (iobase) \ - iowrite8(1, iobase + MAC_REG_PAGE1SEL) +#define VT6655_MAC_SELECT_PAGE1 (iobase) iowrite8(1, iobase + MAC_REG_PAGE1SEL)#define MACvSetRFLE_LatchBase (iobase) \ vt6655_mac_word_reg_bits_on(iobase, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_RFLEOPT)
Signature · 1 line
2.37.2
PATCH 6/9 staging: vt6655: Replace macro MACvSetRFLE_LatchBase
In reply to Philipp HortmannReplace macro MACvSetRFLE_LatchBase with the called function as it is just used once and to avoid CamelCase which is not accepted by checkpatch.pl.
--- drivers/staging/vt6655/baseband.c | 2 +- drivers/staging/vt6655/mac.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-)
drivers/staging/vt6655/baseband.c +1 -1
@@ -2083,7 +2083,7 @@ bool bb_vt3253_init(struct vnt_private *priv) priv->dbm_threshold[2 ] =0 ; priv->dbm_threshold[3 ] =0 ;/* Fix VT3226 DFC system timing issue */ -MACvSetRFLE_LatchBase (iobase); +vt6655_mac_word_reg_bits_on (iobase,MAC_REG_SOFTPWRCTL ,SOFTPWRCTL_RFLEOPT );/* {{ RobertYu: 20050104 */ }else {/* No VGA Table now */
drivers/staging/vt6655/mac.h +0 -3
@@ -541,9 +541,6 @@#define VT6655_MAC_SELECT_PAGE1 (iobase) iowrite8(1, iobase + MAC_REG_PAGE1SEL) -#define MACvSetRFLE_LatchBase (iobase) \ - vt6655_mac_word_reg_bits_on(iobase, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_RFLEOPT) -#define MAKEWORD (lb, hb) \ ((unsigned short)(((unsigned char)(lb)) | (((unsigned short)((unsigned char)(hb))) << 8)))
Signature · 1 line
2.37.2
PATCH 7/9 staging: vt6655: Rename function MACbIsRegBitsOff
In reply to Philipp HortmannRemove declaration of MACbIsRegBitsOff as it is not needed. Rename function MACbIsRegBitsOff to vt6655_mac_is_reg_bits_off, rename byRegOfs to reg_offset and byTestBits to mask to avoid CamelCase which is not accepted by checkpatch.pl. Made function static to keep namespace clean.
--- drivers/staging/vt6655/mac.c | 15 ++++++++------- drivers/staging/vt6655/mac.h | 3 --- 2 files changed, 8 insertions(+), 10 deletions(-)
drivers/staging/vt6655/mac.c +8 -7
@@ -10,7 +10,7 @@* Date: May 21, 1996 * * Functions: -* MACbIsRegBitsOff - Test if All test Bits Off +* vt6655_mac_is_reg_bits_off - Test if All test Bits Off * MACbIsIntDisable - Test if MAC interrupt disable * MACvSetShortRetryLimit - Set 802.11 Short Retry limit * MACvSetLongRetryLimit - Set 802.11 Long Retry limit
@@ -86,20 +86,21 @@ static void vt6655_mac_clear_stck_ds(void __iomem *iobase)* Parameters: * In: * io_base - Base Address for MAC -* byRegOfs - Offset of MAC Register -* byTestBits - Test bits +* reg_offset - Offset of MAC Register +* mask - Test bits * Out: * none * * Return Value: true if all test bits Off; otherwise false * */ -bool MACbIsRegBitsOff (struct vnt_private *priv,unsigned char byRegOfs, -unsigned char byTestBits) +static bool vt6655_mac_is_reg_bits_off (struct vnt_private *priv, +unsigned char reg_offset, +unsigned char mask) {void __iomem *io_base = priv->port_offset; -return !(ioread8 (io_base + byRegOfs) & byTestBits); +return !(ioread8 (io_base + reg_offset) & mask); }/*
@@ -767,7 +768,7 @@ bool MACbPSWakeup(struct vnt_private *priv)void __iomem *io_base = priv->port_offset;unsigned int ww;/* Read PSCTL */ -if (MACbIsRegBitsOff (priv,MAC_REG_PSCTL ,PSCTL_PS )) +if (vt6655_mac_is_reg_bits_off (priv,MAC_REG_PSCTL ,PSCTL_PS ))return true;/* Disable PS */
drivers/staging/vt6655/mac.h +0 -3
@@ -549,9 +549,6 @@ void vt6655_mac_word_reg_bits_on(void __iomem *iobase, const u8 reg_offset, consvoid vt6655_mac_reg_bits_off (void __iomem *iobase,const u8 reg_offset,const u8 bit_mask);void vt6655_mac_word_reg_bits_off (void __iomem *iobase,const u8 reg_offset,const u16 bit_mask); -bool MACbIsRegBitsOff (struct vnt_private *priv,unsigned char byRegOfs, -unsigned char byTestBits); -bool MACbIsIntDisable (struct vnt_private *priv); void MACvSetShortRetryLimit(struct vnt_private *priv,
Signature · 1 line
2.37.2
PATCH 8/9 staging: vt6655: Delete function MACbIsIntDisable
In reply to Philipp HortmannDelete function MACbIsIntDisable as it is unused and the name is not accepted by checkpatch.pl.
--- drivers/staging/vt6655/mac.c | 24 ------------------------ drivers/staging/vt6655/mac.h | 2 -- 2 files changed, 26 deletions(-)
drivers/staging/vt6655/mac.c +0 -24
@@ -11,7 +11,6 @@* * Functions: * vt6655_mac_is_reg_bits_off - Test if All test Bits Off -* MACbIsIntDisable - Test if MAC interrupt disable * MACvSetShortRetryLimit - Set 802.11 Short Retry limit * MACvSetLongRetryLimit - Set 802.11 Long Retry limit * MACvSetLoopbackMode - Set MAC Loopback Mode
@@ -103,29 +102,6 @@ static bool vt6655_mac_is_reg_bits_off(struct vnt_private *priv,return !(ioread8 (io_base + reg_offset) & mask); } -/* -* Description: -* Test if MAC interrupt disable -* -* Parameters: -* In: -* io_base - Base Address for MAC -* Out: -* none -* -* Return Value: true if interrupt is disable; otherwise false -* -*/ -bool MACbIsIntDisable (struct vnt_private *priv) -{ -void __iomem *io_base = priv->port_offset; - -if (ioread32 (io_base +MAC_REG_IMR )) -return false; - -return true; -} -/* * Description: * Set 802.11 Short Retry Limit
drivers/staging/vt6655/mac.h +0 -2
@@ -549,8 +549,6 @@ void vt6655_mac_word_reg_bits_on(void __iomem *iobase, const u8 reg_offset, consvoid vt6655_mac_reg_bits_off (void __iomem *iobase,const u8 reg_offset,const u8 bit_mask);void vt6655_mac_word_reg_bits_off (void __iomem *iobase,const u8 reg_offset,const u16 bit_mask); -bool MACbIsIntDisable (struct vnt_private *priv); -void MACvSetShortRetryLimit (struct vnt_private *priv,unsigned char byRetryLimit);
Signature · 1 line
2.37.2
PATCH 9/9 staging: vt6655: Rename function MACvSetShortRetryLimit
In reply to Philipp HortmannRename function MACvSetShortRetryLimit to vt6655_mac_set_short_retry_limit and byRetryLimit to retry_limit to avoid CamelCase which is not accepted by checkpatch.pl.
--- drivers/staging/vt6655/device_main.c | 2 +- drivers/staging/vt6655/mac.c | 9 ++++----- drivers/staging/vt6655/mac.h | 3 +-- 3 files changed, 6 insertions(+), 8 deletions(-)
drivers/staging/vt6655/device_main.c +1 -1
@@ -412,7 +412,7 @@ static void device_init_registers(struct vnt_private *priv) (CFG_TKIPOPT | CFG_NOTXTIMEOUT));/* set performance parameter by registry */ -MACvSetShortRetryLimit (priv, priv->byShortRetryLimit); +vt6655_mac_set_short_retry_limit (priv, priv->byShortRetryLimit);MACvSetLongRetryLimit (priv, priv->byLongRetryLimit);/* reset TSF counter */
drivers/staging/vt6655/mac.c +4 -5
@@ -11,7 +11,7 @@* * Functions: * vt6655_mac_is_reg_bits_off - Test if All test Bits Off -* MACvSetShortRetryLimit - Set 802.11 Short Retry limit +* vt6655_mac_set_short_retry_limit - Set 802.11 Short Retry limit * MACvSetLongRetryLimit - Set 802.11 Long Retry limit * MACvSetLoopbackMode - Set MAC Loopback Mode * MACvSaveContext - Save Context of MAC Registers
@@ -109,19 +109,18 @@ static bool vt6655_mac_is_reg_bits_off(struct vnt_private *priv,* Parameters: * In: * io_base - Base Address for MAC -* byRetryLimit- Retry Limit +* retry_limit - Retry Limit * Out: * none * * Return Value: none * */ -void MACvSetShortRetryLimit (struct vnt_private *priv, -unsigned char byRetryLimit) +void vt6655_mac_set_short_retry_limit (struct vnt_private *priv,unsigned char retry_limit) {void __iomem *io_base = priv->port_offset;/* set SRT */ -iowrite8 (byRetryLimit, io_base +MAC_REG_SRT ); +iowrite8 (retry_limit, io_base +MAC_REG_SRT ); }/*
drivers/staging/vt6655/mac.h +1 -2
@@ -549,8 +549,7 @@ void vt6655_mac_word_reg_bits_on(void __iomem *iobase, const u8 reg_offset, consvoid vt6655_mac_reg_bits_off (void __iomem *iobase,const u8 reg_offset,const u8 bit_mask);void vt6655_mac_word_reg_bits_off (void __iomem *iobase,const u8 reg_offset,const u16 bit_mask); -void MACvSetShortRetryLimit (struct vnt_private *priv, -unsigned char byRetryLimit); +void vt6655_mac_set_short_retry_limit (struct vnt_private *priv,unsigned char retry_limit);void MACvSetLongRetryLimit (struct vnt_private *priv,unsigned char byRetryLimit);
Signature · 1 line
2.37.2