]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Staging: rtl8192e: Rename variable bLastIniPkt
authorTree Davies <tdavies@darkphysics.net>
Mon, 26 Aug 2024 00:17:20 +0000 (17:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2024 09:55:20 +0000 (11:55 +0200)
Rename variable bLastIniPkt to last_ini_pkt
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240826001724.274811-3-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtllib.h

index e470b49b0ff784bebb5a4c68d79e4913544312aa..8247f22454cd6e52c74171217ccd142695d0888d 100644 (file)
@@ -16,18 +16,18 @@ bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, const void *data,
        struct sk_buff          *skb;
        unsigned char           *seg_ptr;
        struct cb_desc *tcb_desc;
-       u8                              bLastIniPkt;
+       u8                              last_ini_pkt;
 
        struct tx_fwinfo_8190pci *pTxFwInfo = NULL;
 
        do {
                if ((len - frag_offset) > CMDPACKET_FRAG_SIZE) {
                        frag_length = CMDPACKET_FRAG_SIZE;
-                       bLastIniPkt = 0;
+                       last_ini_pkt = 0;
 
                } else {
                        frag_length = (u16)(len - frag_offset);
-                       bLastIniPkt = 1;
+                       last_ini_pkt = 1;
                }
 
                if (type == DESC_PACKET_TYPE_NORMAL)
@@ -43,7 +43,7 @@ bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, const void *data,
                tcb_desc = (struct cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE);
                tcb_desc->queue_index = TXCMD_QUEUE;
                tcb_desc->bCmdOrInit = type;
-               tcb_desc->bLastIniPkt = bLastIniPkt;
+               tcb_desc->last_ini_pkt = last_ini_pkt;
 
                if (type == DESC_PACKET_TYPE_NORMAL) {
                        tcb_desc->pkt_size = frag_length;
index b25e83743956d970d01a4d93ebbee80cbe3dcd73..8ca7eb6b8e7531d9fe1d549113bc6b1d74b62eec 100644 (file)
@@ -987,7 +987,7 @@ void  rtl92e_fill_tx_cmd_desc(struct net_device *dev, struct tx_desc_cmd *entry,
        if (dma_mapping_error(&priv->pdev->dev, mapping))
                netdev_err(dev, "%s(): DMA Mapping error\n", __func__);
        memset(entry, 0, 12);
-       entry->LINIP = cb_desc->bLastIniPkt;
+       entry->LINIP = cb_desc->last_ini_pkt;
        entry->FirstSeg = 1;
        entry->LastSeg = 1;
        if (cb_desc->bCmdOrInit == DESC_PACKET_TYPE_INIT) {
index 4e72fa65a5599d01b8f5ec3ffb50770cac8b91c6..8ca36d1c7fb1a9514dd06f0a7b586832168d1429 100644 (file)
@@ -101,7 +101,7 @@ static inline void *netdev_priv_rsl(struct net_device *dev)
 /* At most 28 byte */
 struct cb_desc {
        /* Tx Desc Related flags (8-9) */
-       u8 bLastIniPkt:1;
+       u8 last_ini_pkt:1;
        u8 bCmdOrInit:1;
        u8 tx_dis_rate_fallback:1;
        u8 tx_use_drv_assinged_rate:1;