]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: ks7010: avoid CamelCase: receiveDTIMs
authorJanusz Lisiecki <janusz.lisiecki@gmail.com>
Tue, 16 May 2017 15:34:57 +0000 (17:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 13:59:37 +0000 (15:59 +0200)
Replace CamelCase variable name with underscores to comply
with the standard kernel coding style.

Signed-off-by: Janusz Lisiecki <janusz.lisiecki@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c
drivers/staging/ks7010/ks_hostif.h

index d9161be71f4a6f40f263dd1df940bd305ecbd5bf..79634be1b873ed40123d6757d332df596f78f18d 100644 (file)
@@ -1659,13 +1659,13 @@ void hostif_phy_information_request(struct ks_wlan_private *priv)
 
 static
 void hostif_power_mgmt_request(struct ks_wlan_private *priv,
-                              unsigned long mode, unsigned long wake_up,
-                              unsigned long receiveDTIMs)
+                               unsigned long mode, unsigned long wake_up,
+                               unsigned long receive_dtims)
 {
        struct hostif_power_mgmt_request_t *pp;
 
-       DPRINTK(3, "mode=%lu wake_up=%lu receiveDTIMs=%lu\n", mode, wake_up,
-               receiveDTIMs);
+       DPRINTK(3, "mode=%lu wake_up=%lu receive_dtims=%lu\n", mode, wake_up,
+               receive_dtims);
 
        pp = hostif_generic_request(sizeof(*pp), HIF_POWER_MGMT_REQ);
        if (!pp)
@@ -1673,7 +1673,7 @@ void hostif_power_mgmt_request(struct ks_wlan_private *priv,
 
        pp->mode = cpu_to_le32((uint32_t)mode);
        pp->wake_up = cpu_to_le32((uint32_t)wake_up);
-       pp->receiveDTIMs = cpu_to_le32((uint32_t)receiveDTIMs);
+       pp->receive_dtims = cpu_to_le32((uint32_t)receive_dtims);
 
        /* send to device request */
        ps_confirm_wait_inc(priv);
@@ -2217,44 +2217,44 @@ spin_unlock:
 static
 void hostif_sme_power_mgmt_set(struct ks_wlan_private *priv)
 {
-       unsigned long mode, wake_up, receiveDTIMs;
+       unsigned long mode, wake_up, receive_dtims;
 
        DPRINTK(3, "\n");
        switch (priv->reg.power_mgmt) {
        case POWER_MGMT_ACTIVE:
                mode = POWER_ACTIVE;
                wake_up = 0;
-               receiveDTIMs = 0;
+               receive_dtims = 0;
                break;
        case POWER_MGMT_SAVE1:
                if (priv->reg.operation_mode == MODE_INFRASTRUCTURE) {
                        mode = POWER_SAVE;
                        wake_up = 0;
-                       receiveDTIMs = 0;
+                       receive_dtims = 0;
                } else {
                        mode = POWER_ACTIVE;
                        wake_up = 0;
-                       receiveDTIMs = 0;
+                       receive_dtims = 0;
                }
                break;
        case POWER_MGMT_SAVE2:
                if (priv->reg.operation_mode == MODE_INFRASTRUCTURE) {
                        mode = POWER_SAVE;
                        wake_up = 0;
-                       receiveDTIMs = 1;
+                       receive_dtims = 1;
                } else {
                        mode = POWER_ACTIVE;
                        wake_up = 0;
-                       receiveDTIMs = 0;
+                       receive_dtims = 0;
                }
                break;
        default:
                mode = POWER_ACTIVE;
                wake_up = 0;
-               receiveDTIMs = 0;
+               receive_dtims = 0;
                break;
        }
-       hostif_power_mgmt_request(priv, mode, wake_up, receiveDTIMs);
+       hostif_power_mgmt_request(priv, mode, wake_up, receive_dtims);
 }
 
 static
index 45e3a01b0b6b5874816733b78d37df2a6c63cee1..5bae8d468e23eb1b717058e0ded2d578f89a9afe 100644 (file)
@@ -188,7 +188,7 @@ struct hostif_power_mgmt_request_t {
        __le32 wake_up;
 #define SLEEP_FALSE 0
 #define SLEEP_TRUE  1  /* not used */
-       __le32 receiveDTIMs;
+       __le32 receive_dtims;
 #define DTIM_FALSE 0
 #define DTIM_TRUE  1
 } __packed;