]> www.infradead.org Git - linux.git/commitdiff
Staging: rtl8192e: Rename variable CmdID_WritePortUshort
authorTree Davies <tdavies@darkphysics.net>
Wed, 21 Aug 2024 03:08:55 +0000 (20:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2024 07:46:50 +0000 (15:46 +0800)
Rename variable CmdID_WritePortUshort to cmd_id_write_port_ushort
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240821030856.57423-6-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtllib.h

index 8a1aac7e10a2f5f153ff20fa12daaf321ef0a5a9..c49dd8094c7cbe94a52d897e168cb3f6d310ad11 100644 (file)
@@ -620,7 +620,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel,
                                rtl92e_writel(dev, CurrentCmd->Para1,
                                              CurrentCmd->Para2);
                                break;
-                       case CmdID_WritePortUshort:
+                       case cmd_id_write_port_ushort:
                                rtl92e_writew(dev, CurrentCmd->Para1,
                                              CurrentCmd->Para2);
                                break;
index 1d23bc3edaea797e437f78bf6fc1f1de92290262..31cd795a7c04037ee7adc9a997f6f026cf149fad 100644 (file)
@@ -157,7 +157,7 @@ enum sw_chnl_cmd_id {
        cmd_id_set_tx_power_level,
        cmd_id_bbreg_write10,
        cmd_id_write_port_ulong,
-       CmdID_WritePortUshort,
+       cmd_id_write_port_ushort,
        CmdID_WritePortUchar,
        CmdID_RF_WriteReg,
 };