staging: vt6655: Type encoding info dropped from function name "CARDbRadioPowerOff"
authorPavan Bobba <opensource206@gmail.com>
Tue, 31 Oct 2023 05:34:31 +0000 (11:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Nov 2023 12:47:42 +0000 (12:47 +0000)
function name "CARDbRadioPowerOff" updated like below:

a.type encoding info dropped from name
b.camelcase name replaced by snakecase

Issue found by checkpatch

Signed-off-by: Pavan Bobba <opensource206@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/5b264db5a6d5ac936e02f0a7f465e648504a049e.1698730318.git.opensource206@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/card.c
drivers/staging/vt6655/card.h
drivers/staging/vt6655/device_main.c

index 716fd36325083c5463ef50f40e19d0268b734df2..7980b93d2b1e95f27e7d87d5bb6090614994a038 100644 (file)
@@ -15,7 +15,7 @@
  *      card_get_next_tbtt - Calculate Next Beacon TSF counter
  *      CARDvSetFirstNextTBTT - Set NIC Beacon time
  *      CARDvUpdateNextTBTT - Sync. NIC Beacon time
- *      CARDbRadioPowerOff - Turn Off NIC Radio Power
+ *      card_radio_power_off - Turn Off NIC Radio Power
  *
  * Revision History:
  *      06-10-2003 Bryan YC Fan:  Re-write codes to support VT3253 spec.
@@ -351,7 +351,7 @@ bool card_set_beacon_period(struct vnt_private *priv,
  *      none
  *
  */
-void CARDbRadioPowerOff(struct vnt_private *priv)
+void card_radio_power_off(struct vnt_private *priv)
 {
        if (priv->radio_off)
                return;
index ab1193799239d67febb58474f36b9e1df048f40e..5ca715b415e8a855a69557a13e6636cc12ff5e95 100644 (file)
@@ -52,7 +52,7 @@ u64 card_get_tsf_offset(unsigned char rx_rate, u64 qwTSF1, u64 qwTSF2);
 unsigned char card_get_pkt_type(struct vnt_private *priv);
 void CARDvSafeResetTx(struct vnt_private *priv);
 void CARDvSafeResetRx(struct vnt_private *priv);
-void CARDbRadioPowerOff(struct vnt_private *priv);
+void card_radio_power_off(struct vnt_private *priv);
 bool card_set_phy_parameter(struct vnt_private *priv, u8 bb_type);
 bool card_update_tsf(struct vnt_private *priv, unsigned char rx_rate,
                    u64 bss_timestamp);
index 2e2a8da571ab07d1e1cf7a53fd97712c8ab4e9df..210c94312310a56e46725195eca3e534b473c610 100644 (file)
@@ -454,7 +454,7 @@ static void device_init_registers(struct vnt_private *priv)
        }
 
        if (priv->hw_radio_off || priv->bRadioControlOff)
-               CARDbRadioPowerOff(priv);
+               card_radio_power_off(priv);
 
        /* get Permanent network address */
        SROMvReadEtherAddress(priv->port_offset, priv->abyCurrentNetAddr);
@@ -1349,7 +1349,7 @@ static void vnt_stop(struct ieee80211_hw *hw)
 
        MACbShutdown(priv);
        MACbSoftwareReset(priv);
-       CARDbRadioPowerOff(priv);
+       card_radio_power_off(priv);
 
        device_free_td0_ring(priv);
        device_free_td1_ring(priv);
@@ -1712,7 +1712,7 @@ static int vnt_init(struct vnt_private *priv)
 
        priv->mac_hw = true;
 
-       CARDbRadioPowerOff(priv);
+       card_radio_power_off(priv);
 
        return 0;
 }