]> www.infradead.org Git - linux.git/commitdiff
Staging: rtl8192e: Rename variable RxDrvInfoSize
authorTree Davies <tdavies@darkphysics.net>
Sun, 8 Sep 2024 19:26:33 +0000 (12:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Sep 2024 13:54:42 +0000 (15:54 +0200)
Rename variable RxDrvInfoSize to rx_drv_info_size
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/20240908192633.94144-17-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtllib.h

index de0cd40df25f4819f50fd503b9e4c9a7b38cd6b3..552fd9b6e3e5144419ca285f26b474b7ab57b73c 100644 (file)
@@ -227,7 +227,7 @@ struct rx_desc {
        u16                     Length:14;
        u16                     CRC32:1;
        u16                     ICV:1;
-       u8                      RxDrvInfoSize;
+       u8                      rx_drv_info_size;
        u8                      Shift:2;
        u8                      PHYStatus:1;
        u8                      SWDec:1;
index d25ac5adfc4996e7b388ff79ce422d0a32e0a9cb..2672b1ddf88e3968a5f8123ddaa3a24b47cd2d60 100644 (file)
@@ -1493,7 +1493,7 @@ static void _rtl92e_translate_rx_signal_stats(struct net_device *dev,
        u8 *tmp_buf;
        u8 *praddr;
 
-       tmp_buf = skb->data + pstats->RxDrvInfoSize + pstats->rx_buf_shift;
+       tmp_buf = skb->data + pstats->rx_drv_info_size + pstats->rx_buf_shift;
 
        hdr = (struct ieee80211_hdr_3addr *)tmp_buf;
        fc = le16_to_cpu(hdr->frame_control);
@@ -1639,7 +1639,7 @@ bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats,
        if (stats->hw_error)
                return false;
 
-       stats->RxDrvInfoSize = pdesc->RxDrvInfoSize;
+       stats->rx_drv_info_size = pdesc->rx_drv_info_size;
        stats->rx_buf_shift = (pdesc->Shift) & 0x03;
        stats->decrypted = !pdesc->SWDec;
 
index d43841a9b21b4d043c3b6e690636e46bf0737980..dc1301f1a0c16bf9cbeb2f5e840d9dc552cf89b6 100644 (file)
@@ -1522,7 +1522,7 @@ static void _rtl92e_rx_normal(struct net_device *dev)
                                 priv->rxbuffersize, DMA_FROM_DEVICE);
 
                skb_put(skb, pdesc->Length);
-               skb_reserve(skb, stats.RxDrvInfoSize +
+               skb_reserve(skb, stats.rx_drv_info_size +
                        stats.rx_buf_shift);
                skb_trim(skb, skb->len - S_CRC_LEN);
                rtllib_hdr = (struct ieee80211_hdr *)skb->data;
index 6cd374a9a9551f94ca7c3bb136c242c1a0bd30e8..d6615f787d5302462cbe6a9d0eed94e89dc9d820 100644 (file)
@@ -474,7 +474,7 @@ struct rtllib_rx_stats {
        u32 time_stamp_low;
        u32 time_stamp_high;
 
-       u8    RxDrvInfoSize;
+       u8    rx_drv_info_size;
        u8    rx_buf_shift;
        bool  bIsAMPDU;
        bool  bFirstMPDU;