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

staging: vt6655: Cleanup and rename function MACvSetCurrTXDescAddr

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>

authored by

Philipp Hortmann and committed by
Greg Kroah-Hartman
8bd2a9f1 b5e0bd41

+6 -8
+2 -2
drivers/staging/vt6655/card.c
··· 409 409 } 410 410 411 411 /* set MAC TD pointer */ 412 - MACvSetCurrTXDescAddr(TYPE_TXDMA0, priv, priv->td0_pool_dma); 412 + vt6655_mac_set_curr_tx_desc_addr(TYPE_TXDMA0, priv, priv->td0_pool_dma); 413 413 414 - MACvSetCurrTXDescAddr(TYPE_AC0DMA, priv, priv->td1_pool_dma); 414 + vt6655_mac_set_curr_tx_desc_addr(TYPE_AC0DMA, priv, priv->td1_pool_dma); 415 415 416 416 /* set MAC Beacon TX pointer */ 417 417 iowrite32((u32)priv->tx_beacon_dma, priv->port_offset + MAC_REG_BCNDMAPTR);
+3 -4
drivers/staging/vt6655/mac.c
··· 653 653 iowrite8(DMACTL_RUN, io_base + MAC_REG_AC0DMACTL); 654 654 } 655 655 656 - void MACvSetCurrTXDescAddr(int iTxType, struct vnt_private *priv, 657 - u32 curr_desc_addr) 656 + void vt6655_mac_set_curr_tx_desc_addr(int tx_type, struct vnt_private *priv, u32 curr_desc_addr) 658 657 { 659 - if (iTxType == TYPE_AC0DMA) 658 + if (tx_type == TYPE_AC0DMA) 660 659 MACvSetCurrAC0DescAddrEx(priv, curr_desc_addr); 661 - else if (iTxType == TYPE_TXDMA0) 660 + else if (tx_type == TYPE_TXDMA0) 662 661 MACvSetCurrTx0DescAddrEx(priv, curr_desc_addr); 663 662 } 664 663
+1 -2
drivers/staging/vt6655/mac.h
··· 558 558 void MACvInitialize(struct vnt_private *priv); 559 559 void vt6655_mac_set_curr_rx_0_desc_addr(struct vnt_private *priv, u32 curr_desc_addr); 560 560 void vt6655_mac_set_curr_rx_1_desc_addr(struct vnt_private *priv, u32 curr_desc_addr); 561 - void MACvSetCurrTXDescAddr(int iTxType, struct vnt_private *priv, 562 - u32 curr_desc_addr); 561 + void vt6655_mac_set_curr_tx_desc_addr(int tx_type, struct vnt_private *priv, u32 curr_desc_addr); 563 562 void MACvSetCurrTx0DescAddrEx(struct vnt_private *priv, 564 563 u32 curr_desc_addr); 565 564 void MACvSetCurrAC0DescAddrEx(struct vnt_private *priv,