staging:rtl8192u: Rename CmdID_WritePortUshort > CMD_ID_WRITE_PORT_USHORT
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 13 Jul 2018 11:23:08 +0000 (12:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Jul 2018 13:41:17 +0000 (15:41 +0200)
Rename the enum label CmdID_WritePortUshort to CMD_ID_WRITE_PORT_USHORT to
clear the checkpatch warning on CamelCase naming. This is a coding style
change only and should not impact code 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 a10d345..a681e7e 100644 (file)
@@ -1383,7 +1383,7 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
                        write_nic_dword(dev, CurrentCmd->Para1,
                                        CurrentCmd->Para2);
                        break;
-               case CmdID_WritePortUshort:
+               case CMD_ID_WRITE_PORT_USHORT:
                        write_nic_word(dev, CurrentCmd->Para1,
                                       (u16)CurrentCmd->Para2);
                        break;
index 95250ac..45372a2 100644 (file)
@@ -11,7 +11,7 @@ enum switch_chan_cmd_id {
        CMD_ID_END,
        CMD_ID_SET_TX_PWR_LEVEL,
        CMD_ID_WRITE_PORT_ULONG,
-       CmdID_WritePortUshort,
+       CMD_ID_WRITE_PORT_USHORT,
        CmdID_WritePortUchar,
        CmdID_RF_WriteReg,
 };