]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging:rtl8192u: Rename enum label CmdID_End > CMD_ID_END - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 13 Jul 2018 11:23:04 +0000 (12:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Jul 2018 13:41:16 +0000 (15:41 +0200)
Rename enum label to clear a CamelCase warning from checkpatch. This is a
simple style change and should not impact execution.

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

index c373dbe06154c6f02c40fcac2e9a9cfcc0837ec2..c67159f2d9ab08d15e8dd331d1e504ae2a43a1e2 100644 (file)
@@ -1295,13 +1295,13 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
                                      MAX_PRECMD_CNT, CmdID_SetTxPowerLevel,
                                      0, 0, 0);
        rtl8192_phy_SetSwChnlCmdArray(PreCommonCmd, PreCommonCmdCnt++,
-                                     MAX_PRECMD_CNT, CmdID_End, 0, 0, 0);
+                                     MAX_PRECMD_CNT, CMD_ID_END, 0, 0, 0);
 
        /* <2> Fill up post common command. */
        PostCommonCmdCnt = 0;
 
        rtl8192_phy_SetSwChnlCmdArray(PostCommonCmd, PostCommonCmdCnt++,
-                                     MAX_POSTCMD_CNT, CmdID_End, 0, 0, 0);
+                                     MAX_POSTCMD_CNT, CMD_ID_END, 0, 0, 0);
 
        /* <3> Fill up RF dependent command. */
        RfDependCmdCnt = 0;
@@ -1321,7 +1321,7 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
                                              10);
                rtl8192_phy_SetSwChnlCmdArray(RfDependCmd, RfDependCmdCnt++,
                                              MAX_RFDEPENDCMD_CNT,
-                                             CmdID_End, 0, 0, 0);
+                                             CMD_ID_END, 0, 0, 0);
                break;
 
        case RF_8256:
@@ -1338,7 +1338,7 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
                                              rZebra1_Channel, channel, 10);
                rtl8192_phy_SetSwChnlCmdArray(RfDependCmd, RfDependCmdCnt++,
                                              MAX_RFDEPENDCMD_CNT,
-                                             CmdID_End, 0, 0, 0);
+                                             CMD_ID_END, 0, 0, 0);
                break;
 
        case RF_8258:
@@ -1363,7 +1363,7 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
                        break;
                }
 
-               if (CurrentCmd->CmdID == CmdID_End) {
+               if (CurrentCmd->CmdID == CMD_ID_END) {
                        if ((*stage) == 2) {
                                (*delay) = CurrentCmd->msDelay;
                                return true;
index 0c63c646b6257c631f4fd9c9e23bff8fe0b8d1c4..efbca1f458f5c545a0679848d80264eb2598d49d 100644 (file)
@@ -8,7 +8,7 @@
 #define MAX_POSTCMD_CNT 16
 
 enum switch_chan_cmd_id {
-       CmdID_End,
+       CMD_ID_END,
        CmdID_SetTxPowerLevel,
        CmdID_BBRegWrite10,
        CmdID_WritePortUlong,