]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging:rtl8192u: Rename variable NumChnls - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 20 Jul 2018 20:21:32 +0000 (21:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 06:58:32 +0000 (08:58 +0200)
Rename the member variable NumChnls to num_channels. This change clears the
checkpatch issue with CamelCase naming. The change should not impact runtime
execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/dot11d.c
drivers/staging/rtl8192u/ieee80211/dot11d.h

index f24dae97bc0de0b0c02efbc42310d7eaad90c155..17bccb7bf594e03146dc56f9df5481e2f0d1c5f5 100644 (file)
@@ -69,7 +69,7 @@ void Dot11d_UpdateCountryIe(struct ieee80211_device *dev, u8 *pTaddr,
                        netdev_err(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
                        return;
                }
-               if (MAX_CHANNEL_NUMBER < (pTriple->first_channel + pTriple->NumChnls)) {
+               if (MAX_CHANNEL_NUMBER < (pTriple->first_channel + pTriple->num_channels)) {
                        /* It is not a valid set of channel id, so stop
                         * processing.
                         */
@@ -77,7 +77,7 @@ void Dot11d_UpdateCountryIe(struct ieee80211_device *dev, u8 *pTaddr,
                        return;
                }
 
-               for (j = 0; j < pTriple->NumChnls; j++) {
+               for (j = 0; j < pTriple->num_channels; j++) {
                        pDot11dInfo->channel_map[pTriple->first_channel + j] = 1;
                        pDot11dInfo->MaxTxPwrDbmList[pTriple->first_channel + j] = pTriple->MaxTxPowerInDbm;
                        MaxChnlNum = pTriple->first_channel + j;
index 968c622137df91f3fad2d04c52d5f43d483a0f57..8c2b11d1218588ac4cb51532dd3e1e930b7e00d3 100644 (file)
@@ -6,7 +6,7 @@
 
 struct chnl_txpower_triple {
        u8  first_channel;
-       u8  NumChnls;
+       u8  num_channels;
        u8  MaxTxPowerInDbm;
 };