]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: wlan-ng: rename DIDmib_p2_p2Static_p2CnfPortType in p80211metadef.h
authorTim Collier <osdevtc@gmail.com>
Wed, 26 Sep 2018 22:06:23 +0000 (23:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 12:42:42 +0000 (14:42 +0200)
Rename DIDmib_p2_p2Static_p2CnfPortType in p80211metadef.h to
DIDMIB_P2_STATIC_CNFPORTTYPE to fix "Avoid CamelCase" message from
checkpatch and conform to the coding style guidelines. Also shorten
name by removing repeated use of "P2" to ease readability and reduce
long lines.

Signed-off-by: Tim Collier <osdevtc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/cfg80211.c
drivers/staging/wlan-ng/p80211metadef.h
drivers/staging/wlan-ng/prism2mib.c

index 9602ef0b5ae150a25d899d49f8f0a7b1e359e01a..a2f1136b97fae662b0d8a049eed06f6217456060 100644 (file)
@@ -129,7 +129,7 @@ static int prism2_change_virtual_intf(struct wiphy *wiphy,
 
        /* Set Operation mode to the PORT TYPE RID */
        result = prism2_domibset_uint32(wlandev,
-                                       DIDmib_p2_p2Static_p2CnfPortType,
+                                       DIDMIB_P2_STATIC_CNFPORTTYPE,
                                        data);
 
        if (result)
index 44618d9ddeea26586326ed8e1d4ea29713878853..4939cdf7606c194d902dce5a9b440caefb4623d1 100644 (file)
 #define DIDMIB_P2_STATIC \
                        (P80211DID_MKSECTION(5) | \
                        P80211DID_MKGROUP(2))
-#define DIDmib_p2_p2Static_p2CnfPortType \
+#define DIDMIB_P2_STATIC_CNFPORTTYPE \
                        (P80211DID_MKSECTION(5) | \
                        P80211DID_MKGROUP(2) | \
                        P80211DID_MKITEM(1) | 0x18000000)
index ea918df825d2afe685f8f934d9812593db05b2ab..32d1515904d4fb1e53245d2e6c73ec6126b69a71 100644 (file)
@@ -217,7 +217,7 @@ static struct mibrec mibtab[] = {
 
        /* p2Static MIB's */
 
-       {DIDmib_p2_p2Static_p2CnfPortType,
+       {DIDMIB_P2_STATIC_CNFPORTTYPE,
         F_STA | F_READ | F_WRITE,
         HFA384x_RID_CNFPORTTYPE, 0, 0,
         prism2mib_uint32},