staging: vt6655: Cleanup and rename function MACvSetCurrTXDescAddr
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 11 Sep 2022 10:47:15 +0000 (12:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Sep 2022 11:58:45 +0000 (13:58 +0200)
Rename function MACvSetCurrTXDescAddr to vt6655_mac_set_curr_tx_desc_addr
and iTxType to tx_type to avoid CamelCase which is not accepted by
checkpatch.pl. Remove unnecessary line break.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/88dcbac76f6bad8b4eb68a3cb37cd4f9684294a0.1662890990.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/card.c
drivers/staging/vt6655/mac.c
drivers/staging/vt6655/mac.h

index d137b4b45e3b71aaad98f4eb6755cd0bde96f05a..c680925b9c92c5664673697e2b5b60f6822361dc 100644 (file)
@@ -409,9 +409,9 @@ void CARDvSafeResetTx(struct vnt_private *priv)
        }
 
        /* set MAC TD pointer */
-       MACvSetCurrTXDescAddr(TYPE_TXDMA0, priv, priv->td0_pool_dma);
+       vt6655_mac_set_curr_tx_desc_addr(TYPE_TXDMA0, priv, priv->td0_pool_dma);
 
-       MACvSetCurrTXDescAddr(TYPE_AC0DMA, priv, priv->td1_pool_dma);
+       vt6655_mac_set_curr_tx_desc_addr(TYPE_AC0DMA, priv, priv->td1_pool_dma);
 
        /* set MAC Beacon TX pointer */
        iowrite32((u32)priv->tx_beacon_dma, priv->port_offset + MAC_REG_BCNDMAPTR);
index d6614be79e3946cf0a4bfe75f747e7434da5b786..0ff98468b2e08ad1a6f1e8e790e0b32b4e5ee0c6 100644 (file)
@@ -653,12 +653,11 @@ void MACvSetCurrAC0DescAddrEx(struct vnt_private *priv,
                iowrite8(DMACTL_RUN, io_base + MAC_REG_AC0DMACTL);
 }
 
-void MACvSetCurrTXDescAddr(int iTxType, struct vnt_private *priv,
-                          u32 curr_desc_addr)
+void vt6655_mac_set_curr_tx_desc_addr(int tx_type, struct vnt_private *priv, u32 curr_desc_addr)
 {
-       if (iTxType == TYPE_AC0DMA)
+       if (tx_type == TYPE_AC0DMA)
                MACvSetCurrAC0DescAddrEx(priv, curr_desc_addr);
-       else if (iTxType == TYPE_TXDMA0)
+       else if (tx_type == TYPE_TXDMA0)
                MACvSetCurrTx0DescAddrEx(priv, curr_desc_addr);
 }
 
index fff9dc72e2c0702bf5c5ff3c7ee00a8e63a75bb0..0224f710d60368dc729df9b6a7f1f3b097a4e34a 100644 (file)
@@ -558,8 +558,7 @@ bool MACbShutdown(struct vnt_private *priv);
 void MACvInitialize(struct vnt_private *priv);
 void vt6655_mac_set_curr_rx_0_desc_addr(struct vnt_private *priv, u32 curr_desc_addr);
 void vt6655_mac_set_curr_rx_1_desc_addr(struct vnt_private *priv, u32 curr_desc_addr);
-void MACvSetCurrTXDescAddr(int iTxType, struct vnt_private *priv,
-                          u32 curr_desc_addr);
+void vt6655_mac_set_curr_tx_desc_addr(int tx_type, struct vnt_private *priv, u32 curr_desc_addr);
 void MACvSetCurrTx0DescAddrEx(struct vnt_private *priv,
                              u32 curr_desc_addr);
 void MACvSetCurrAC0DescAddrEx(struct vnt_private *priv,